mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Remove fission energy release-related flag in get-nndc-data. Make sure BREMX.DAT
gets installed.
This commit is contained in:
parent
bab5162f0b
commit
6d22b30b5c
2 changed files with 2 additions and 6 deletions
|
|
@ -148,16 +148,11 @@ if not response or response.lower().startswith('y'):
|
|||
# get a list of all ACE files
|
||||
ace_files = sorted(glob.glob(os.path.join('nndc', '**', '*.ace*')))
|
||||
|
||||
# Get path to fission energy release data
|
||||
data_dir = os.path.dirname(sys.modules['openmc.data'].__file__)
|
||||
fer_file = os.path.join(data_dir, 'fission_Q_data_endfb71.h5')
|
||||
|
||||
# Call the ace-to-hdf5 conversion script
|
||||
pwd = os.path.dirname(os.path.realpath(__file__))
|
||||
ace2hdf5 = os.path.join(pwd, 'openmc-ace-to-hdf5')
|
||||
subprocess.call([ace2hdf5,
|
||||
'-d', 'nndc_hdf5',
|
||||
'--fission_energy_release', fer_file,
|
||||
'--libver', args.libver] + ace_files)
|
||||
|
||||
# Generate photo interaction library files
|
||||
|
|
|
|||
3
setup.py
3
setup.py
|
|
@ -32,7 +32,7 @@ kwargs = {
|
|||
# Data files and librarries
|
||||
'package_data': {
|
||||
'openmc.capi': ['libopenmc.{}'.format(suffix)],
|
||||
'openmc.data': ['mass.mas12', '*.h5']
|
||||
'openmc.data': ['mass.mas12', 'BREMX.DAT', '*.h5']
|
||||
},
|
||||
|
||||
# Metadata
|
||||
|
|
@ -52,6 +52,7 @@ kwargs = {
|
|||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'Programming Language :: Python :: 3.7',
|
||||
],
|
||||
|
||||
# Required dependencies
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue