Skip to content

Commit ed8cd44

Browse files
authored
Merge pull request #187 from TzuYaoHuang/fix/2DPlot_SimGIF
Fix a small bug
2 parents 20c2bf6 + e9589af commit ed8cd44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/WaterLilyPlotsExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function sim_gif!(sim;duration=1,step=0.1,verbose=true,R=inside(sim.flow.p),
4444
@time @gif for tᵢ in range(t₀,t₀+duration;step)
4545
WaterLily.sim_step!(sim,tᵢ;remeasure)
4646
@WaterLily.inside sim.flow.σ[I] = WaterLily.curl(3,I,sim.flow.u)*sim.L/sim.U
47-
flood(sim.flow.σ[R]; kv...)
47+
flood(sim.flow.σ[R]|>Array; kv...)
4848
plotbody && body_plot!(sim)
4949
verbose && println("tU/L=",round(tᵢ,digits=4),
5050
", Δt=",round(sim.flow.Δt[end],digits=3))

0 commit comments

Comments
 (0)