Fix off-by-one for get_nuclide_xs

This commit is contained in:
Paul Romano 2019-02-25 22:48:57 -06:00
parent 2729d986bf
commit 9646648937
2 changed files with 37 additions and 37 deletions

View file

@ -277,7 +277,7 @@ get_nuclide_xs(int index, int xstype, int gin, const int* gout,
} else {
dg_c_p = dg;
}
return data::nuclides_MG[index - 1].get_xs(xstype, gin - 1, gout_c_p, mu, dg_c_p);
return data::nuclides_MG[index].get_xs(xstype, gin - 1, gout_c_p, mu, dg_c_p);
}
//==============================================================================