mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Fix off-by-one for index_grid
This commit is contained in:
parent
4a89075890
commit
6ce85a9f0c
4 changed files with 18 additions and 22 deletions
|
|
@ -42,6 +42,8 @@ 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