AMReX-Astro / Castro

Castro (Compressible Astrophysics): An adaptive mesh, astrophysical compressible (radiation-, magneto-) hydrodynamics simulation code for massively parallel CPU and GPU architectures.
http://amrex-astro.github.io/Castro
Other
298 stars 97 forks source link

create an API for updating runtime parameters #2701

Open zingale opened 8 months ago

zingale commented 8 months ago

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:

zingale commented 8 months ago

these were found using #2702