mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Refactor ParticleType to use PDG Monte Carlo numbering scheme (#3756)
Co-authored-by: GuySten <62616591+GuySten@users.noreply.github.com> Co-authored-by: Amanda Lund <alund1187@gmail.com>
This commit is contained in:
parent
fc0d9eec65
commit
b41e22f68b
62 changed files with 1401 additions and 558 deletions
|
|
@ -70,9 +70,8 @@ Reaction::Reaction(
|
|||
|
||||
if (settings::use_decay_photons) {
|
||||
// Remove photon products for D1S method
|
||||
products_.erase(
|
||||
std::remove_if(products_.begin(), products_.end(),
|
||||
[](const auto& p) { return p.particle_ == ParticleType::photon; }),
|
||||
products_.erase(std::remove_if(products_.begin(), products_.end(),
|
||||
[](const auto& p) { return p.particle_.is_photon(); }),
|
||||
products_.end());
|
||||
|
||||
// Determine product for D1S method
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue