Skip to content

Commit b003904

Browse files
committed
some more fixes based on Perlmutter
1 parent 049b646 commit b003904

File tree

6 files changed

+65
-34
lines changed

6 files changed

+65
-34
lines changed

Exec/science/subchandra/GNUmakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ USE_SHOCK_VAR = TRUE
1717

1818
USE_MODEL_PARSER = TRUE
1919

20-
USE_SIMPLIFIED_SDC=TRUE
20+
USE_SIMPLIFIED_SDC = TRUE
21+
22+
# for the networks we tend to use, we can still use Jac caching on GPUs
23+
USE_JACOBIAN_CACHING = TRUE
2124

2225
# This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS
2326
EOS_DIR := helmholtz

Exec/science/subchandra/inputs_2d.N14.coarse

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# ------------------ INPUTS TO MAIN PROGRAM -------------------
22

3-
amr.plot_files_output = 1
4-
amr.checkpoint_files_output = 1
5-
63
max_step = 1000000
74
stop_time = 10.0
85

@@ -95,6 +92,12 @@ amr.blocking_factor = 32 # block factor in grid generation
9592

9693
# I/O
9794

95+
amr.plot_files_output = 1
96+
amr.checkpoint_files_output = 1
97+
# with the SLURM HUP functionality, we get a checkpoint near
98+
# the end of the queue window -- don't do a plotfile then too
99+
amr.write_plotfile_with_checkpoint = 0
100+
98101
amr.check_file = subch_chk # root name of checkpoint file
99102
amr.check_int = 50 # number of timesteps between checkpoints
100103
amr.plot_file = subch_plt # root name of plot file

Exec/science/subchandra/inputs_2d.NSE

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
# ------------------ INPUTS TO MAIN PROGRAM -------------------
2-
amr.plot_files_output = 1
3-
amr.checkpoint_files_output = 1
4-
52
max_step = 1000000
63
stop_time = 10.0
74

@@ -13,8 +10,6 @@ geometry.prob_hi = 5.12e9 1.024e10
1310

1411
amr.n_cell = 1280 2560
1512

16-
amr.max_level = 1 # maximum level number allowed
17-
1813
castro.lo_bc = 3 2
1914
castro.hi_bc = 2 2
2015

@@ -63,7 +58,7 @@ castro.sponge_timescale = 1.e-3
6358
castro.cfl = 0.2 # cfl number for hyperbolic system
6459
castro.init_shrink = 0.05 # scale back initial timestep by this factor
6560
castro.change_max = 1.025 # factor by which dt is allowed to change each timestep
66-
castro.sum_interval = 0 # timesteps between computing and printing volume averages
61+
castro.sum_interval = 5 # timesteps between computing and printing volume averages
6762
castro.update_sources_after_reflux = 0
6863
castro.time_integration_method = 3
6964

@@ -73,32 +68,44 @@ castro.max_subcycles = 32
7368

7469
castro.abundance_failure_rho_cutoff = 1.0
7570

71+
amr.v = 1 # control verbosity in Amr.cpp
72+
castro.v = 1 # control verbosity in Castro.cpp
73+
74+
castro.small_dens = 1.e-5
75+
castro.small_temp = 1.e5
76+
7677
#castro.dtnuc_e = 0.25
7778
#castro.dtnuc_X = 0.25
7879

80+
# gridding
81+
82+
amr.max_level = 1 # maximum level number allowed
83+
7984
amr.ref_ratio = 2 2 2 2 # refinement ratio
8085
amr.regrid_int = 2 # how often to regrid
8186
amr.n_error_buf = 2 2 2 2 # number of buffer cells in error est
8287
amr.grid_eff = 0.7 # what constitutes an efficient grid
8388

89+
amr.max_grid_size = 256 # maximum grid size allowed -- used to control parallelism
90+
amr.blocking_factor = 32 # block factor in grid generation
91+
92+
# I/O
93+
94+
amr.plot_files_output = 1
95+
amr.checkpoint_files_output = 1
96+
# with the SLURM HUP functionality, we get a checkpoint near
97+
# the end of the queue window -- don't do a plotfile then too
98+
amr.write_plotfile_with_checkpoint = 0
99+
84100
amr.check_file = subch_chk # root name of checkpoint file
85101
amr.check_int = 50 # number of timesteps between checkpoints
86102
amr.plot_file = subch_plt # root name of plot file
87103
amr.plot_int = -1 # number of timesteps between plotfiles
88104
amr.plot_per = 2.e-3
89105

90-
amr.max_grid_size = 256 # maximum grid size allowed -- used to control parallelism
91-
amr.blocking_factor = 32 # block factor in grid generation
92-
93-
amr.v = 1 # control verbosity in Amr.cpp
94-
castro.v = 1 # control verbosity in Castro.cpp
95-
96106
amr.derive_plot_vars = ALL
97107
castro.store_burn_weights = 1
98108

99-
castro.small_dens = 1.e-5
100-
castro.small_temp = 1.e5
101-
102109
# problem parameters
103110

104111
problem.pert_temp_factor = 20.0

Exec/science/subchandra/inputs_2d.ONe

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# ------------------ INPUTS TO MAIN PROGRAM -------------------
22

3-
amr.plot_files_output = 1
4-
amr.checkpoint_files_output = 1
5-
63
max_step = 1000000
74
stop_time = 10.0
85

@@ -28,13 +25,13 @@ castro.do_grav = 1
2825
castro.do_react = 1
2926
castro.do_sponge = 1
3027

31-
castro.react_rho_min = 100.0
28+
castro.react_rho_min = 500.0
3229
castro.react_T_min = 5.e7
3330

3431
castro.disable_shock_burning = 1
3532
castro.ppm_type = 1
3633
castro.ppm_temp_fix = 0
37-
castro.use_pslope = 1
34+
castro.ppm_well_balanced = 1
3835

3936
castro.use_flattening = 1
4037

@@ -95,6 +92,12 @@ amr.blocking_factor = 32 # block factor in grid generation
9592

9693
# I/O
9794

95+
amr.plot_files_output = 1
96+
amr.checkpoint_files_output = 1
97+
# with the SLURM HUP functionality, we get a checkpoint near
98+
# the end of the queue window -- don't do a plotfile then too
99+
amr.write_plotfile_with_checkpoint = 0
100+
98101
amr.check_file = subch_chk # root name of checkpoint file
99102
amr.check_int = 50 # number of timesteps between checkpoints
100103
amr.plot_file = subch_plt # root name of plot file
@@ -167,17 +170,26 @@ integrator.SMALL_X_SAFE = 1.e-30
167170
integrator.do_species_clip = 0
168171

169172
integrator.rtol_spec = 1.e-5
170-
integrator.atol_spec = 1.e-5
173+
integrator.atol_spec = 1.e-8
171174
integrator.rtol_enuc = 1.e-5
172175
integrator.atol_enuc = 1.e-5
173176
integrator.jacobian = 1
174177

175178
integrator.X_reject_buffer = 4.0
176179

177-
# disable jacobian caching in VODE
178-
integrator.use_jacobian_caching = 0
180+
integrator.use_jacobian_caching = 1
179181

180-
integrator.ode_max_steps = 20000
182+
# force a small number of steps to get a retry at the burn level
183+
# instead of the Castro level
184+
integrator.ode_max_steps = 5000
181185

182186
integrator.use_burn_retry = 1
183187
integrator.retry_swap_jacobian = 1
188+
189+
# NSE
190+
191+
nse.nse_molar_independent = 0
192+
nse.nse_dx_independent = 0
193+
nse.ase_tol = 0.1
194+
nse.nse_skip_molar = 0
195+
nse.solve_nse_e_mode = 1

Exec/science/subchandra/inputs_3d.N14.M_WD1.0_M_He0.05

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# ------------------ INPUTS TO MAIN PROGRAM -------------------
22

3-
amr.plot_files_output = 1
4-
amr.checkpoint_files_output = 1
5-
63
max_step = 100000
74
stop_time = 10.0
85

@@ -98,6 +95,12 @@ amr.blocking_factor = 32 # block factor in grid generation
9895

9996
# I/O
10097

98+
amr.plot_files_output = 1
99+
amr.checkpoint_files_output = 1
100+
# with the SLURM HUP functionality, we get a checkpoint near
101+
# the end of the queue window -- don't do a plotfile then too
102+
amr.write_plotfile_with_checkpoint = 0
103+
101104
amr.check_file = subch_chk # root name of checkpoint file
102105
amr.check_int = 100 # number of timesteps between checkpoints
103106
amr.plot_file = subch_plt # root name of plot file

Exec/science/subchandra/inputs_3d.N14.coarse

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# ------------------ INPUTS TO MAIN PROGRAM -------------------
22

3-
amr.plot_files_output = 1
4-
amr.checkpoint_files_output = 1
5-
63
max_step = 100000
74
stop_time = 10.0
85

@@ -98,6 +95,12 @@ amr.blocking_factor = 32 # block factor in grid generation
9895

9996
# I/O
10097

98+
amr.plot_files_output = 1
99+
amr.checkpoint_files_output = 1
100+
# with the SLURM HUP functionality, we get a checkpoint near
101+
# the end of the queue window -- don't do a plotfile then too
102+
amr.write_plotfile_with_checkpoint = 0
103+
101104
amr.check_file = subch_chk # root name of checkpoint file
102105
amr.check_int = 25 # number of timesteps between checkpoints
103106
amr.plot_file = subch_plt # root name of plot file

0 commit comments

Comments
 (0)