Skip to content

Commit

Permalink
keep source by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Jul 10, 2024
1 parent 7d405fa commit f1ab109
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion script/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ def build(PROBLEM, PATHS):
CLEAN = not NOCLEAN
WRITE_PARAM = not NOPARAM
KEEP_SRC = '-src' in sys.argv
REMOVE_SRC = not KEEP_SRC
NOKEEP_SRC = '-nosrc'
REMOVE_SRC = not NOKEEP_SRC

# get version
VERSION = get_version()
Expand Down Expand Up @@ -387,6 +388,12 @@ def build(PROBLEM, PATHS):
set_cparm("OUTPUT_EOSVARS", 1)
print_config("OUTPUT_EOSVARS", CPARMS["OUTPUT_EOSVARS"])

if util.parm_is_active(CPARMS, 'RADIATION'):
if util.parm_is_active(CPARMS, 'LOCAL_ANGULAR_DISTRIBUTIONS'):
print_config('LOCAL_ANGULAR_DISTRIBUTIONS', CPARMS['LOCAL_ANGULAR_DISTRIBUTIONS'])
else:
set_cparm('LOCAL_ANGULAR_DISTRIBUTIONS', 0)

NEED_UNITS = (util.parm_is_active(CPARMS, 'RADIATION') or
util.parm_is_active(CPARMS, 'COULOMB') or
CPARMS['EOS'] == 'EOS_TYPE_TABLE')
Expand Down

0 comments on commit f1ab109

Please sign in to comment.