mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Changed name "decay rate" to "decay-rate" to avoid seg faults
I added decay-rate to get_xsdata since it was missing. However, set_decay_rate_mgxs sets it as "decay rate". That space in the name seems to cause some errors, akin to seg faults. By replacing that name with "decay-rate", create_mg_mode could run smoothly.
This commit is contained in:
parent
802917b6c3
commit
327bca1b6c
3 changed files with 8 additions and 3 deletions
|
|
@ -16,7 +16,7 @@ PLOT_TYPES = ['total', 'scatter', 'elastic', 'inelastic', 'fission',
|
|||
PLOT_TYPES_MGXS = ['total', 'absorption', 'scatter', 'fission',
|
||||
'kappa-fission', 'nu-fission', 'prompt-nu-fission',
|
||||
'deleyed-nu-fission', 'chi', 'chi-prompt', 'chi-delayed',
|
||||
'inverse-velocity', 'beta', 'decay rate', 'unity']
|
||||
'inverse-velocity', 'beta', 'decay-rate', 'unity']
|
||||
# Create a dictionary which can be used to convert PLOT_TYPES_MGXS to the
|
||||
# openmc.XSdata attribute name needed to access the data
|
||||
_PLOT_MGXS_ATTR = {line: line.replace(' ', '_').replace('-', '_')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue