mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -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
|
|
@ -25,7 +25,7 @@ TEST_CASE("MCPL stat:sum field")
|
|||
|
||||
// Initialize test particles
|
||||
for (int i = 0; i < 100; ++i) {
|
||||
source_bank[i].particle = openmc::ParticleType::neutron;
|
||||
source_bank[i].particle = openmc::ParticleType::neutron();
|
||||
source_bank[i].r = {i * 0.1, i * 0.2, i * 0.3};
|
||||
source_bank[i].u = {0.0, 0.0, 1.0};
|
||||
source_bank[i].E = 2.0e6; // 2 MeV
|
||||
|
|
@ -63,7 +63,7 @@ TEST_CASE("MCPL stat:sum field")
|
|||
|
||||
// Initialize particles
|
||||
for (int i = 0; i < count; ++i) {
|
||||
source_bank[i].particle = openmc::ParticleType::neutron;
|
||||
source_bank[i].particle = openmc::ParticleType::neutron();
|
||||
source_bank[i].r = {0.0, 0.0, 0.0};
|
||||
source_bank[i].u = {0.0, 0.0, 1.0};
|
||||
source_bank[i].E = 1.0e6;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue