From 1621f09479a98b8d1800f5bb363cc0ad2f830d01 Mon Sep 17 00:00:00 2001 From: "Gregory L. Wagner" Date: Fri, 29 Apr 2022 08:33:03 -0400 Subject: [PATCH 1/2] Fix minor error in `internal_wave.jl` --- examples/internal_wave.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/internal_wave.jl b/examples/internal_wave.jl index 44567ec011..570527b1f7 100644 --- a/examples/internal_wave.jl +++ b/examples/internal_wave.jl @@ -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 from iteration $Nt..." w = interior(w_timeseries[i], :, 1, :) From 1369822dcd3cfa946b9cfb2e1ce2be763464f70a Mon Sep 17 00:00:00 2001 From: "Gregory L. Wagner" Date: Fri, 29 Apr 2022 10:49:25 -0400 Subject: [PATCH 2/2] Update internal_wave.jl --- examples/internal_wave.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/internal_wave.jl b/examples/internal_wave.jl index 570527b1f7..6b26a5d203 100644 --- a/examples/internal_wave.jl +++ b/examples/internal_wave.jl @@ -150,7 +150,7 @@ x, y, z = nodes(w_timeseries) anim = @animate for (i, t) in enumerate(w_timeseries.times) - @info "Drawing frame $i from iteration $Nt..." + @info "Drawing frame $i of $Nt..." w = interior(w_timeseries[i], :, 1, :)