mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Move ParticleType into Particle and use for type_ member
This commit is contained in:
parent
b4ed267d4b
commit
b28ee8087c
21 changed files with 104 additions and 97 deletions
|
|
@ -143,16 +143,16 @@ extern "C" void print_particle(Particle* p)
|
|||
{
|
||||
// Display particle type and ID.
|
||||
switch (p->type_) {
|
||||
case static_cast<int>(ParticleType::neutron):
|
||||
case Particle::Type::neutron:
|
||||
std::cout << "Neutron ";
|
||||
break;
|
||||
case static_cast<int>(ParticleType::photon):
|
||||
case Particle::Type::photon:
|
||||
std::cout << "Photon ";
|
||||
break;
|
||||
case static_cast<int>(ParticleType::electron):
|
||||
case Particle::Type::electron:
|
||||
std::cout << "Electron ";
|
||||
break;
|
||||
case static_cast<int>(ParticleType::positron):
|
||||
case Particle::Type::positron:
|
||||
std::cout << "Positron ";
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue