increase nubank size from 10 to 15. Some nu values were getting be 10 or 11. Also added an assert to enforce this.

This commit is contained in:
John Tramm 2019-12-16 20:49:16 +00:00
parent 05df1ea803
commit 58d10d6a30
2 changed files with 3 additions and 1 deletions

View file

@ -329,7 +329,7 @@ public:
std::vector<std::vector<Position>> tracks_;
NuBank nu_bank_[10];
NuBank nu_bank_[15];
};
} // namespace openmc

View file

@ -169,6 +169,8 @@ create_fission_sites(Particle* p, int i_nuclide, const Reaction* rx,
// First, if our bank is full then don't continue
if (nu == 0) return;
assert( nu < 15 );
// Initialize the counter of delayed neutrons encountered for each delayed
// group.
double nu_d[MAX_DELAYED_GROUPS] = {0.};