From e36f67c5bb3ea4705ce3eb42f1178f97802fb801 Mon Sep 17 00:00:00 2001 From: liangjg Date: Thu, 28 Mar 2019 21:07:44 -0400 Subject: [PATCH] fix particle tally filter bug: the index is stored wrong --- src/tallies/tally.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tallies/tally.cpp b/src/tallies/tally.cpp index 682db35405..1cbd534240 100644 --- a/src/tallies/tally.cpp +++ b/src/tallies/tally.cpp @@ -718,7 +718,7 @@ void read_tallies_xml() const auto& f = model::tally_filters[i_filter].get(); auto pf = dynamic_cast(f); - if (pf) particle_filter_index = j; + if (pf) particle_filter_index = i_filter; // Change the tally estimator if a filter demands it std::string filt_type = f->type();