Rough banking of surface source into surf_src_bank

This commit is contained in:
YoungHui Park 2020-03-17 00:20:00 -05:00
parent 2ebf9d844f
commit 0c8ce53d94
2 changed files with 4 additions and 0 deletions

View file

@ -159,6 +159,8 @@ 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,6 +423,8 @@ 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;
}
// Handle any applicable boundary conditions.