finished comment incorporation from code review

This commit is contained in:
John Tramm 2020-01-16 01:48:59 +00:00
parent 82325639a1
commit 47cfc9cbf1
10 changed files with 95 additions and 85 deletions

View file

@ -469,6 +469,11 @@ void initialize_history(Particle* p, int64_t index_source)
#pragma omp atomic
simulation::total_weight += p->wgt_;
initialize_history_partial(p);
}
void initialize_history_partial(Particle* p)
{
// Force calculation of cross-sections by setting last energy to zero
if (settings::run_CE) {
for (auto& micro : p->neutron_xs_) micro.last_E = 0.0;