From 42b5f2aa7e407eaa0668a2e737dc31373a0f7a5c Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Wed, 12 Jun 2019 16:38:35 -0500 Subject: [PATCH] Adding history reset at the end of the particle transport loop. --- include/openmc/cell.h | 2 +- src/particle.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/openmc/cell.h b/include/openmc/cell.h index cc4429b44f..080dac345c 100644 --- a/include/openmc/cell.h +++ b/include/openmc/cell.h @@ -11,7 +11,7 @@ #include "hdf5.h" #include "pugixml.hpp" #ifdef DAGMC -#include "DagMC.hpp" +#include "dagmc.h" #endif #include "openmc/constants.h" diff --git a/src/particle.cpp b/src/particle.cpp index 5364e1d2b4..eef58a490d 100644 --- a/src/particle.cpp +++ b/src/particle.cpp @@ -372,6 +372,12 @@ Particle::transport() } } + #ifdef DAGMC + if(settings::dagmc) { + history.reset(); + } + #endif + // Finish particle track output. if (write_track_) { write_particle_track(*this);