From 1395bc8b8815c8d683a17d048e39fcd0b5e0b8a3 Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Fri, 22 May 2015 23:27:25 -0400 Subject: [PATCH] Tally.add_tally(...) now breaks loop if merges with another Tally --- src/utils/openmc/tallies.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/openmc/tallies.py b/src/utils/openmc/tallies.py index 3231b5e694..e0d8a2fcea 100644 --- a/src/utils/openmc/tallies.py +++ b/src/utils/openmc/tallies.py @@ -854,6 +854,7 @@ class TalliesFile(object): merged_tally = tally2.merge(tally) self._tallies[i] = merged_tally merged = True + break # If not mergeable tally was found, simply add this tally if not merged: