Skip to content

Commit

Permalink
fix utype -> dtype
Browse files Browse the repository at this point in the history
  • Loading branch information
ctessum committed Oct 13, 2024
1 parent 3ba2e31 commit ffb3a01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/simulator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ struct Simulator{T,FT1,FT2,TG}
end

function Base.show(io::IO, s::Simulator)
print(io, "Simulator{$(utype(s.domaininfo))} with $(length(equations(s.sys_mtk))) equation(s), $(length(s.sys.ops)) operator(s), and $(*([length(g) for g in s.grid]...)) grid cells.")
print(io, "Simulator{$(dtype(s.domaininfo))} with $(length(equations(s.sys_mtk))) equation(s), $(length(s.sys.ops)) operator(s), and $(*([length(g) for g in s.grid]...)) grid cells.")
end

"Initialize the state variables."
Expand Down
6 changes: 3 additions & 3 deletions src/simulator_strategy_strang.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A simulator strategy based on Strang splitting.
Choose either `SimulatorStrangThreads` or `SimulatorStrangSerial` to run the simulation.
!!! warning
`SimulatorStrang` strategies will still work if no operator is included,
`SimulatorStrang` strategies will still work if no operator is included,
but any callbacks included in the system are executed together with the operators,
so if there are no operators in the system, the callbacks will not be executed.
"""
Expand All @@ -22,7 +22,7 @@ SimulatorStrangThreads(stiffalg, nonstiffalg, timestep)
Perform a simulation using [Strang splitting](https://en.wikipedia.org/wiki/Strang_splitting),
where the MTK system is assumed to be stiff and the operators are assumed to be non-stiff.
The solution of the stiff ODE system is parallelized across grid cells
The solution of the stiff ODE system is parallelized across grid cells
using the specified number of threads.
$(FIELDS)
Expand Down Expand Up @@ -137,4 +137,4 @@ function single_ode_step!(s::Simulator{T}, u, IIchunk, integrator, time::T, step
@assert length(integrator.sol.u) == 0
uii .= integrator.u
end
end
end

0 comments on commit ffb3a01

Please sign in to comment.