mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Switch to push_back method instead of manual indexing
This commit is contained in:
parent
2e49a1d6de
commit
45b24ca78e
2 changed files with 1 additions and 4 deletions
|
|
@ -159,8 +159,6 @@ public:
|
|||
neutron, photon, electron, positron
|
||||
};
|
||||
|
||||
int64_t icross = 0;
|
||||
|
||||
//! Saved ("banked") state of a particle
|
||||
//! NOTE: This structure's MPI type is built in initialize_mpi() of
|
||||
//! initialize.cpp. Any changes made to the struct here must also be
|
||||
|
|
|
|||
|
|
@ -423,8 +423,7 @@ Particle::cross_surface()
|
|||
site.particle = this->type_;
|
||||
// site.parent_id = this->id_;
|
||||
// site.progeny_id = this->n_progeny_;
|
||||
simulation::surf_src_bank[Particle::icross] = site;
|
||||
Particle::icross += 1;
|
||||
simulation::surf_src_bank.push_back(site);
|
||||
}
|
||||
|
||||
// Handle any applicable boundary conditions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue