Castro (Compressible Astrophysics): An adaptive mesh, astrophysical compressible (radiation-, magneto-) hydrodynamics simulation code for massively parallel CPU and GPU architectures.
For most runtime parameters, we read them at initialization and they never change. But we have a few cases where depending on the values of other parameters, we change some. This should be done explicitly through a setter function so we can catch changes when we transition to structs for the runtime parameters.
Here's a partial list of runtime parameters that we override:
do_reflux (in Castro.cpp, read_params())
rot_axis (in Castro.cpp, read_params())
sdc_iters (in Castro_advance_ctu.cpp)
small_temp, small_dens, small_pres, small_ener (all in Castro_setup.cpp)
rotational_period (in Castro_io.cpp, scf_relax.cpp)
point_mass (in Castro_io.cpp, Castro_pointmass.cpp)
For most runtime parameters, we read them at initialization and they never change. But we have a few cases where depending on the values of other parameters, we change some. This should be done explicitly through a setter function so we can catch changes when we transition to structs for the runtime parameters.
Here's a partial list of runtime parameters that we override:
do_reflux
(inCastro.cpp
,read_params()
)rot_axis
(inCastro.cpp
,read_params()
)sdc_iters
(inCastro_advance_ctu.cpp
)small_temp
,small_dens
,small_pres
,small_ener
(all inCastro_setup.cpp
)rotational_period
(inCastro_io.cpp
,scf_relax.cpp
)point_mass
(inCastro_io.cpp
,Castro_pointmass.cpp
)