mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
fix misnamed variable and remove accientally committed code
This commit is contained in:
parent
9065bdac3a
commit
28cd0c5d3a
1 changed files with 13 additions and 4 deletions
|
|
@ -350,10 +350,19 @@ FileSource::FileSource(mcpl_file_t mcpl_file)
|
|||
//neutrons or photons
|
||||
}
|
||||
|
||||
if(mcpl_particle->pdgcode==2112) {
|
||||
site_.particle=ParticleType::neutron;
|
||||
} else if (mcpl_particle->pdgcode==22) {
|
||||
site_.particle=ParticleType::photon;
|
||||
switch(pdg){
|
||||
case 2112:
|
||||
site_.particle=ParticleType::neutron;
|
||||
break;
|
||||
case 22:
|
||||
site_.particle=ParticleType::photon;
|
||||
break;
|
||||
case 11:
|
||||
site_.particle=ParticleType::electron;
|
||||
break;
|
||||
case -11:
|
||||
site_.particle=ParticleType::positron;
|
||||
break;
|
||||
}
|
||||
|
||||
//particle is good, convert to openmc-formalism
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue