mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -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
|
|
@ -40,7 +40,9 @@ void read_particle_restart(Particle& p, int& previous_run_mode)
|
|||
previous_run_mode = RUN_MODE_FIXEDSOURCE;
|
||||
}
|
||||
read_dataset(file_id, "id", p.id_);
|
||||
read_dataset(file_id, "type", p.type_);
|
||||
int type;
|
||||
read_dataset(file_id, "type", type);
|
||||
p.type_ = static_cast<Particle::Type>(type);
|
||||
read_dataset(file_id, "weight", p.wgt_);
|
||||
read_dataset(file_id, "energy", p.E_);
|
||||
std::array<double, 3> x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue