Adding history reset at the end of the particle transport loop.

This commit is contained in:
Patrick Shriwise 2019-06-12 16:38:35 -05:00
parent c924606064
commit 42b5f2aa7e
2 changed files with 7 additions and 1 deletions

View file

@ -11,7 +11,7 @@
#include "hdf5.h"
#include "pugixml.hpp"
#ifdef DAGMC
#include "DagMC.hpp"
#include "dagmc.h"
#endif
#include "openmc/constants.h"

View file

@ -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);