mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Allow get_microxs_and_flux to use OPENMC_CHAIN_FILE environment variable (#2934)
This commit is contained in:
parent
cc848effe7
commit
0aad22d541
1 changed files with 1 additions and 2 deletions
|
|
@ -27,10 +27,9 @@ _valid_rxns.append('fission')
|
|||
|
||||
|
||||
def _resolve_chain_file_path(chain_file: str):
|
||||
# Determine what reactions and nuclides are available in chain
|
||||
if chain_file is None:
|
||||
chain_file = openmc.config.get('chain_file')
|
||||
if 'chain_file' in openmc.config:
|
||||
if 'chain_file' not in openmc.config:
|
||||
raise DataError(
|
||||
"No depletion chain specified and could not find depletion "
|
||||
"chain in openmc.config['chain_file']"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue