mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Adding ifdefs to fix builds without DAGMC.
This commit is contained in:
parent
956cf08481
commit
67aca58079
1 changed files with 6 additions and 0 deletions
|
|
@ -286,7 +286,9 @@ Particle::event_collide()
|
|||
// Score flux derivative accumulators for differential tallies.
|
||||
if (!model::active_tallies.empty()) score_collision_derivative(*this);
|
||||
|
||||
#ifdef DAGMC
|
||||
history_.reset();
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -502,6 +504,10 @@ Particle::cross_reflective_bc(const Surface& surf, Direction new_u)
|
|||
coord(0).cell = cell_last(n_coord_last() - 1);
|
||||
surface() = -surface();
|
||||
|
||||
#ifdef DAGMC
|
||||
if (surf->geom_type_ != GeometryType::DAGMC) 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