Skip to content

Commit

Permalink
Merge pull request #2500 from CliMA/glw/internal-wave-example-error
Browse files Browse the repository at this point in the history
Fix minor error in `internal_wave.jl`
  • Loading branch information
navidcy authored Apr 30, 2022
2 parents 0f9245d + 1369822 commit 3322f18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/internal_wave.jl
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,14 @@ run!(simulation)
using Printf, Plots

w_timeseries = FieldTimeSeries("internal_wave.jld2", "w")
Nt = length(w_timeseries.times)
x, y, z = nodes(w_timeseries)

# and makes an animation with Plots.jl:

anim = @animate for (i, t) in enumerate(w_timeseries.times)

@info "Drawing frame $i from iteration $iter..."
@info "Drawing frame $i of $Nt..."

w = interior(w_timeseries[i], :, 1, :)

Expand Down

0 comments on commit 3322f18

Please sign in to comment.