mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Store 0-based threshold indices in HDF5 files
This commit is contained in:
parent
adce57093d
commit
7a1afc5869
2 changed files with 2 additions and 7 deletions
|
|
@ -42,8 +42,6 @@ Reaction::Reaction(hid_t group, const std::vector<int>& temperatures)
|
|||
// Get threshold index
|
||||
TemperatureXS xs;
|
||||
read_attribute(dset, "threshold_idx", xs.threshold);
|
||||
// TODO: change HDF5 format so that threshold_idx is 0-based
|
||||
--xs.threshold;
|
||||
|
||||
// Read cross section values
|
||||
read_dataset(dset, xs.value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue