mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Rough banking of surface source into surf_src_bank
This commit is contained in:
parent
2ebf9d844f
commit
0c8ce53d94
2 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue