Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions core/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ void set_core_params() {
#if HDF5_OPACITIES
set_param("opac_file", &opac_file);
#endif // HDF5_OPACITIES
#if KUMAMOTO_OPACITIES
printf("Trying to use Kumamoto opacities! These are not currently implemented, crashing out...\n");
exit(-1);
#endif // KUMAMOTO_OPACITIES
#endif // RADTYPE_NEUTRINOS
#endif // RADIATION

Expand Down
4 changes: 3 additions & 1 deletion prob/torus_cbc/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
TRACERTEST = '-tracertest' in sys.argv
RESTARTTEST = '-restarttest' in sys.argv
HDF = '-hdf' in sys.argv
KUMAMOTO = '-kumamoto' in sys.argv
OSCILLATIONS = "-oscillations" in sys.argv
N1N2N3CPU_FROM_CLI = '-n1n2n3cpu' in sys.argv
N1N2N3TOT_FROM_CLI = '-n1n2n3tot' in sys.argv
Expand Down Expand Up @@ -71,7 +72,7 @@
EMISS = not NOEMISS
SCATT = not (NOSCATT or KILL)
ABS = not (NOABS or KILL)
FORTRAN = NEUTRINOS and not HDF
FORTRAN = NEUTRINOS and not HDF and not KUMAMOTO
TRACERS = not NOTRACE

USE_TABLE = GAMTABLE or RELTABLE
Expand Down Expand Up @@ -411,6 +412,7 @@
bhl.config.set_cparm('KILL_ALL_PACKETS', True)
bhl.config.set_cparm('BURROWS_OPACITIES', FORTRAN)
bhl.config.set_cparm('HDF5_OPACITIES', HDF)
bhl.config.set_cparm('KUMAMOTO_OPACITIES',KUMAMOTO)
bhl.config.set_cparm('NU_BINS', 61)
bhl.config.set_cparm('ESTIMATE_THETAE', False)
bhl.config.set_cparm('GRAYABSORPTION', False)
Expand Down
4 changes: 4 additions & 0 deletions script/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@ def build(PROBLEM, PATHS):
print_config("HDF5_OPACITIES", CPARMS["HDF5_OPACITIES"])
else:
set_cparm("HDF5_OPACITIES", 0)
if util.parm_is_active(CPARMS, "KUMAMOTO_OPACITIES"):
print_config("KUMAMOTO_OPACITIES", CPARMS["KUMAMOTO_OPACITIES"])
else:
set_cparm("KUMAMOTO_OPACITIES", 0)
if util.parm_is_active(CPARMS, "RAD_NUM_TYPES"):
print_config("RAD_NUM_TYPES", CPARMS["RAD_NUM_TYPES"])
else:
Expand Down