Skip to content

Commit

Permalink
Fix imports and do not keep copy in mem by default
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmunozmoncayo committed Jul 5, 2024
1 parent fd2594c commit d84f2ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/euler_gravity_3d/rising_hot_sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def euler3d(kernel_language='Fortran',solver_type='classic',\
use_petsc=False,outdir='./_output',\
output_format='hdf5',file_prefix='equil',disable_output=False,\
mx=mxyz[0],my=mxyz[1],mz=mxyz[2],\
tfinal=64.0,num_output_times=1):
tfinal=64.0,num_output_times=1,keep_copy=False):

if use_petsc:
import clawpack.petclaw as pyclaw
Expand All @@ -177,7 +177,7 @@ def euler3d(kernel_language='Fortran',solver_type='classic',\
import logging
solver.logger.setLevel(logging.DEBUG)
from clawpack import riemann
solver.rp = riemann.euler_3d_gmap
solver.rp = riemann.euler_mapgrid_3D
solver.num_eqn = 5
solver.num_waves = 3
solver.cfl_max = 0.6
Expand Down Expand Up @@ -340,7 +340,7 @@ def euler3d(kernel_language='Fortran',solver_type='classic',\
claw.solver = solver
claw.output_format = output_format
claw.output_file_prefix = file_prefix
claw.keep_copy = True
claw.keep_copy = keep_copy
if disable_output:
claw.output_format = None
claw.tfinal = tfinal
Expand Down
2 changes: 1 addition & 1 deletion examples/euler_gravity_3d/rising_hot_sphere_spherical.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def euler3d(kernel_language='Fortran',solver_type='classic',\
import logging
solver.logger.setLevel(logging.DEBUG)
from clawpack import riemann
solver.rp = riemann.euler_3d_gmap
solver.rp = riemann.euler_mapgrid_3D
solver.num_eqn = 5
solver.num_waves = 3
solver.cfl_max = 0.6
Expand Down

0 comments on commit d84f2ff

Please sign in to comment.