mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Moving history reset on CSG surface crossing to correct location after rebase.
This commit is contained in:
parent
9779906d01
commit
0d6bc86331
1 changed files with 6 additions and 5 deletions
|
|
@ -381,6 +381,12 @@ Particle::cross_surface()
|
|||
int64_t idx = simulation::surf_source_bank.thread_safe_append(site);
|
||||
}
|
||||
|
||||
// if we're crossing a CSG surface, make sure the DAG history is reset
|
||||
#ifdef DAGMC
|
||||
if (surf->geom_type_ != GeometryType::DAG) history().reset();
|
||||
#endif
|
||||
|
||||
|
||||
// Handle any applicable boundary conditions.
|
||||
if (surf->bc_ && settings::run_mode != RunMode::PLOTTING) {
|
||||
surf->bc_->handle_particle(*this, *surf);
|
||||
|
|
@ -504,11 +510,6 @@ Particle::cross_reflective_bc(const Surface& surf, Direction new_u)
|
|||
coord(0).cell = cell_last(n_coord_last() - 1);
|
||||
surface() = -surface();
|
||||
|
||||
// if we're crossing a CSG surface, make sure the DAG history is reset
|
||||
#ifdef DAGMC
|
||||
if (surf.geom_type_ != GeometryType::DAG) history().reset();
|
||||
#endif
|
||||
|
||||
// If a reflective surface is coincident with a lattice or universe
|
||||
// boundary, it is necessary to redetermine the particle's coordinates in
|
||||
// the lower universes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue