Fix off-by-one on event_nuclide and diff_nuclide

This commit is contained in:
Paul Romano 2019-02-25 10:07:04 -06:00
parent 6ce85a9f0c
commit a2e058c8cf
5 changed files with 80 additions and 92 deletions

View file

@ -657,8 +657,7 @@ write_tallies()
case DIFF_NUCLIDE_DENSITY:
tallies_out << " Nuclide density derivative Material "
<< std::to_string(deriv.diff_material) << " Nuclide "
// TODO: off-by-one
<< data::nuclides[deriv.diff_nuclide-1]->name_ << "\n";
<< data::nuclides[deriv.diff_nuclide]->name_ << "\n";
break;
case DIFF_TEMPERATURE:
tallies_out << " Temperature derivative Material "