File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,10 @@ void MeshMaterialFilter::set_translation(const double translation[3])
99
99
void MeshMaterialFilter::get_all_bins (
100
100
const Particle& p, TallyEstimator estimator, FilterMatch& match) const
101
101
{
102
+ // If current material is not in any bins, don't bother checking
103
+ if (!contains (materials_, p.material ())) {
104
+ return ;
105
+ }
102
106
103
107
Position last_r = p.r_last ();
104
108
Position r = p.r ();
@@ -120,11 +124,6 @@ void MeshMaterialFilter::get_all_bins(
120
124
}
121
125
}
122
126
} else {
123
- // If current material is not in any bins, don't bother checking
124
- if (!contains (materials_, p.material ())) {
125
- return ;
126
- }
127
-
128
127
// First determine which elements the particle crosses (may or may not
129
128
// actually match bins so we have to adjust bins_/weight_ after)
130
129
int32_t n_start = match.bins_ .size ();
You can’t perform that action at this time.
0 commit comments