mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Fixed a problem where in openmc-ace-to-hdf5 was over-writing h5 files instead of appending temperatures
This commit is contained in:
parent
419cc2a04d
commit
203f64023c
1 changed files with 2 additions and 1 deletions
|
|
@ -115,6 +115,7 @@ elif args.xsdata is not None:
|
|||
else:
|
||||
ace_libraries = args.libraries
|
||||
|
||||
nuclides = {}
|
||||
library = openmc.data.DataLibrary()
|
||||
|
||||
for filename in ace_libraries:
|
||||
|
|
@ -124,11 +125,11 @@ for filename in ace_libraries:
|
|||
continue
|
||||
|
||||
lib = openmc.data.ace.Library(filename)
|
||||
nuclides = {}
|
||||
for table in lib.tables:
|
||||
name, xs = table.name.split('.')
|
||||
if xs.endswith('c'):
|
||||
# Continuous-energy neutron data
|
||||
|
||||
if name not in nuclides:
|
||||
try:
|
||||
neutron = openmc.data.IncidentNeutron.from_ace(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue