mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Use nu_bank_ for fixed source mode too
Right now, if an outgoing energy filter is used with a nu-fission score in fixed source mode, OpenMC will segfault because it tries to pull information on fission sites from nu_bank_, which is not currently populated.
This commit is contained in:
parent
a76c5a7e09
commit
6650dcf833
2 changed files with 10 additions and 14 deletions
|
|
@ -217,13 +217,11 @@ create_fission_sites(Particle& p, int i_nuclide, const Reaction& rx)
|
|||
}
|
||||
|
||||
// Write fission particles to nuBank
|
||||
if (use_fission_bank) {
|
||||
p.nu_bank_.emplace_back();
|
||||
Particle::NuBank* nu_bank_entry = &p.nu_bank_.back();
|
||||
nu_bank_entry->wgt = site.wgt;
|
||||
nu_bank_entry->E = site.E;
|
||||
nu_bank_entry->delayed_group = site.delayed_group;
|
||||
}
|
||||
p.nu_bank_.emplace_back();
|
||||
Particle::NuBank* nu_bank_entry = &p.nu_bank_.back();
|
||||
nu_bank_entry->wgt = site.wgt;
|
||||
nu_bank_entry->E = site.E;
|
||||
nu_bank_entry->delayed_group = site.delayed_group;
|
||||
}
|
||||
|
||||
// If shared fission bank was full, and no fissions could be added,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue