Adding ifdefs to fix builds without DAGMC.

This commit is contained in:
Patrick Shriwise 2020-11-12 10:12:01 -06:00
parent 956cf08481
commit 67aca58079

View file

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