Skip to content

Commit

Permalink
fixed ex18p
Browse files Browse the repository at this point in the history
  • Loading branch information
sshiraiwa committed Aug 5, 2024
1 parent fdd3935 commit 28ba768
Show file tree
Hide file tree
Showing 2 changed files with 291 additions and 226 deletions.
5 changes: 3 additions & 2 deletions examples/ex18.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from numpy import sqrt, pi, cos, sin, hypot, arctan2
from scipy.special import erfc

# Equation constant parameters.(using globals to share them with ex18_common)
from ex18_common import (EulerMesh,
EulerInitialCondition,
DGHyperbolicConservationLaws)
Expand Down Expand Up @@ -168,6 +167,8 @@ def run(problem=1,
if (done or ti % vis_steps == 0):
print("time step: " + str(ti) + ", time: " + "{:g}".format(t))
if (visualization):
sout << "window_title 'momentum, t = " << "{:g}".format(
t) << "'\n"
sout << "solution\n" << mesh << mom
sout.flush()

Expand Down Expand Up @@ -218,7 +219,7 @@ def run(problem=1,
help="CFL number for timestep calculation.")
parser.add_argument('-novis', '--no_visualization',
action='store_true', default=False,
help='Enable GLVis visualization')
help='Disable GLVis visualization')
parser.add_argument("-ea", "--element-assembly-divergence",
action='store_true', default=False,
help="Weak divergence assembly level\n" +
Expand Down
Loading

0 comments on commit 28ba768

Please sign in to comment.