mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Change OPENDEPLETE_CHAIN -> OPENMC_DEPLETE_CHAIN
This commit is contained in:
parent
4e21e398c8
commit
ea335e0696
3 changed files with 7 additions and 7 deletions
|
|
@ -23,8 +23,8 @@ class Settings(object):
|
|||
output_dir : pathlib.Path
|
||||
Path to output directory to save results.
|
||||
chain_file : str
|
||||
Path to the depletion chain xml file. Defaults to the
|
||||
:envvar:`OPENDEPLETE_CHAIN` environment variable if it exists.
|
||||
Path to the depletion chain XML file. Defaults to the
|
||||
:envvar:`OPENMC_DEPLETE_CHAIN` environment variable if it exists.
|
||||
dilute_initial : float
|
||||
Initial atom density to add for nuclides that are zero in initial
|
||||
condition to ensure they exist in the decay chain. Only done for
|
||||
|
|
@ -37,7 +37,7 @@ class Settings(object):
|
|||
"""
|
||||
def __init__(self):
|
||||
try:
|
||||
self.chain_file = os.environ["OPENDEPLETE_CHAIN"]
|
||||
self.chain_file = os.environ["OPENMC_DEPLETE_CHAIN"]
|
||||
except KeyError:
|
||||
self.chain_file = None
|
||||
self.dt_vec = None
|
||||
|
|
|
|||
|
|
@ -332,9 +332,9 @@ class Chain(object):
|
|||
root = ET.parse(filename)
|
||||
except Exception:
|
||||
if filename is None:
|
||||
print("No chain specified, either manually or in environment variable OPENDEPLETE_CHAIN.")
|
||||
print("No chain specified, either manually or in environment variable OPENMC_DEPLETE_CHAIN.")
|
||||
else:
|
||||
print('Decay chain "', filename, '" is invalid.')
|
||||
print('Decay chain "{}" is invalid.'.format(filename))
|
||||
raise
|
||||
|
||||
for i, nuclide_elem in enumerate(root.findall('nuclide_table')):
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@ class OpenMCSettings(Settings):
|
|||
output_dir : pathlib.Path
|
||||
Path to output directory to save results.
|
||||
chain_file : str
|
||||
Path to the depletion chain xml file. Defaults to the
|
||||
:envvar:`OPENDEPLETE_CHAIN` environment variable if it exists.
|
||||
Path to the depletion chain XML file. Defaults to the
|
||||
:envvar:`OPENMC_DEPLETE_CHAIN` environment variable if it exists.
|
||||
dilute_initial : float
|
||||
Initial atom density to add for nuclides that are zero in initial
|
||||
condition to ensure they exist in the decay chain. Only done for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue