Skip to content

Commit

Permalink
Fixed bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
b-fg committed Nov 15, 2024
1 parent d0bd8e0 commit 57e9b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WaterLily.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Can be set to `false` for static geometries to speed up simulation.
function sim_step!(sim::Simulation,t_end;remeasure=true,max_steps=typemax(Int),bf=nothing,CFL_f=CFL,verbose=false)
steps₀ = length(sim.flow.Δt)
while sim_time(sim) < t_end && length(sim.flow.Δt) - steps₀ < max_steps
sim_step!(sim; remeasure, CFL_f)
sim_step!(sim; remeasure, bf, CFL_f)
verbose && println("tU/L=",round(sim_time(sim),digits=4),
", Δt=",round(sim.flow.Δt[end],digits=3))
end
Expand Down

0 comments on commit 57e9b1a

Please sign in to comment.