Fix off-by-one for index_grid

This commit is contained in:
Paul Romano 2019-02-25 09:55:28 -06:00
parent 4a89075890
commit 6ce85a9f0c
4 changed files with 18 additions and 22 deletions

View file

@ -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);