Switch to push_back method instead of manual indexing

This commit is contained in:
YoungHui Park 2020-04-01 17:07:41 -05:00
parent 2e49a1d6de
commit 45b24ca78e
2 changed files with 1 additions and 4 deletions

View file

@ -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

View file

@ -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.