mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Fix off-by-one on event_nuclide and diff_nuclide
This commit is contained in:
parent
6ce85a9f0c
commit
a2e058c8cf
5 changed files with 80 additions and 92 deletions
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue