Skip to content

Commit

Permalink
fix world age issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLampert committed Oct 2, 2023
1 parent 1cbde75 commit 6d67b9e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions visualization/create_figures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ using SummationByPartsOperators: SummationByPartsOperators,
UniformPeriodicMesh1D,
couple_discontinuously,
couple_continuously
using Trixi: PlotData1D
using SparseArrays: sparse
using Plots
using LaTeXStrings
Expand Down Expand Up @@ -502,13 +503,14 @@ function fig_9()
linestyle = linestyles[2])
end

include("elixir_shallowwater_1d_dingemans.jl")
trixi_include("elixir_shallowwater_1d_dingemans.jl")
for (i, step) in enumerate(steps)
plot!(PlotData1D(sol.u[step], semi)["H"], label = "Shallow water", subplot = i,
pd = PlotData1D(sol.u[step], semi)
plot!(pd["H"], label = "Shallow water", subplot = i,
title = "t = $(round(sol.t[step], digits = 2))", plot_title = "",
linewidth = linewidth, legend = :none, guidefontsize = fontsize,
tickfontsize = fontsize, color = 3, linestyle = linestyles[3])
plot!(PlotData1D(sol.u[step], semi)["H"], linewidth = linewidth, legend = :none,
plot!(pd["H"], linewidth = linewidth, legend = :none,
framestyle = :box, xlim = xlims_zoom[i], ylim = ylim_zoom,
subplot = length(steps) + i, plot_title = "", title = "", xguide = "",
yguide = "", color = 3, linestyle = linestyles[3])
Expand Down

0 comments on commit 6d67b9e

Please sign in to comment.