mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
finished comment incorporation from code review
This commit is contained in:
parent
82325639a1
commit
47cfc9cbf1
10 changed files with 95 additions and 85 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue