mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Turn Particle::initialize into the default constructor
This commit is contained in:
parent
b28ee8087c
commit
e906198273
6 changed files with 44 additions and 68 deletions
|
|
@ -136,7 +136,6 @@ void create_ppm(Plot pl)
|
|||
#pragma omp parallel
|
||||
{
|
||||
Particle p;
|
||||
p.initialize();
|
||||
std::copy(xyz, xyz+3, p.coord_[0].xyz);
|
||||
std::copy(dir, dir+3, p.coord_[0].uvw);
|
||||
p.coord_[0].universe = model::root_universe;
|
||||
|
|
@ -854,7 +853,6 @@ void create_voxel(Plot pl)
|
|||
// allocate and initialize particle
|
||||
double dir[3] = {0.5, 0.5, 0.5};
|
||||
Particle p;
|
||||
p.initialize();
|
||||
std::copy(ll.begin(), ll.begin()+ll.size(), p.coord_[0].xyz);
|
||||
std::copy(dir, dir+3, p.coord_[0].uvw);
|
||||
p.coord_[0].universe = model::root_universe;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue