From 3cbea749cb7919a826bcc73f5fe1edbddcc2e497 Mon Sep 17 00:00:00 2001 From: "wbinventor@gmail.com" Date: Thu, 28 Jan 2016 13:54:38 -0500 Subject: [PATCH] Now clear any old tallies in MGXS.load_from_statepoint(...) --- openmc/mgxs/mgxs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openmc/mgxs/mgxs.py b/openmc/mgxs/mgxs.py index d1f3d4b069..f241274581 100644 --- a/openmc/mgxs/mgxs.py +++ b/openmc/mgxs/mgxs.py @@ -612,6 +612,11 @@ class MGXS(object): filters = [] filter_bins = [] + # Clear any tallies previously loaded from a statepoint + self._tallies = None + self._xs_tally = None + self._rxn_rate_tally = None + # Find, slice and store Tallies from StatePoint # The tally slicing is needed if tally merging was used for tally_type, tally in self.tallies.items():