Skip to content

Commit 0fad800

Browse files
committed
more fixes
1 parent 23e859c commit 0fad800

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

pyro/compressible_fv4/_defaults

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ grav = 0.0 ; gravitational acceleration (in y-direction)
2323

2424
riemann = CGF
2525

26+
small_dens = -1.e200 ; minimum allowed density
2627

2728
[sponge]
2829
do_sponge = 0 ; do we include a sponge source term

pyro/compressible_fv4/simulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def substep(self, myd):
1919
compute the advective source term for the given state
2020
"""
2121

22-
self.clean_state(myd)
22+
self.clean_state(myd.data)
2323

2424
myg = myd.grid
2525

pyro/compressible_rk/_defaults

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ riemann = HLLC ; HLLC or CGF
2525

2626
well_balanced = 0 ; use a well-balanced scheme to keep the model in hydrostatic equilibrium
2727

28+
small_dens = -1.e200 ; minimum allowed density
2829

2930
[sponge]
3031
do_sponge = 0 ; do we include a sponge source term

pyro/compressible_rk/simulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def substep(self, myd):
1515
conservative state defined as part of myd
1616
"""
1717

18-
self.clean_state(myd)
18+
self.clean_state(myd.data)
1919

2020
myg = myd.grid
2121

pyro/compressible_sdc/_defaults

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ grav = 0.0 ; gravitational acceleration (in y-direction)
2323

2424
riemann = CGF
2525

26+
small_dens = -1.e200 ; minimum allowed density
2627

2728
[sponge]
2829
do_sponge = 0 ; do we include a sponge source term

0 commit comments

Comments
 (0)