mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Adding history reset at the end of the particle transport loop.
This commit is contained in:
parent
c924606064
commit
42b5f2aa7e
2 changed files with 7 additions and 1 deletions
|
|
@ -11,7 +11,7 @@
|
|||
#include "hdf5.h"
|
||||
#include "pugixml.hpp"
|
||||
#ifdef DAGMC
|
||||
#include "DagMC.hpp"
|
||||
#include "dagmc.h"
|
||||
#endif
|
||||
|
||||
#include "openmc/constants.h"
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue