mit-crpg / opendeplete

A depletion framework for OpenMC
MIT License
15 stars 5 forks source link

Allow chain to be read from environment variable #16

Closed cjosey closed 7 years ago

cjosey commented 7 years ago

If settings.chain_file is not specified, it will attempt to read from OPENDEPLETE_CHAIN environment variable.

This also adds a few file checks to ensure files exist and to report errors.

Addresses issue #10.

wbinventor commented 7 years ago

Thanks @cjosey! This looks simple enough to me, though I'm not feeling trigger-happy and will let you or @paulromano do the honors.