fix particle tally filter bug: the index is stored wrong

This commit is contained in:
liangjg 2019-03-28 21:07:44 -04:00
parent f6ace6ece7
commit e36f67c5bb

View file

@ -718,7 +718,7 @@ void read_tallies_xml()
const auto& f = model::tally_filters[i_filter].get();
auto pf = dynamic_cast<ParticleFilter*>(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();