We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9b20a8 commit bc52df7Copy full SHA for bc52df7
1 file changed
src/tallies/filter_material.cpp
@@ -37,10 +37,12 @@ void MaterialFilter::set_materials(span<const int32_t> materials)
37
materials_.reserve(materials.size());
38
map_.clear();
39
40
+ int32_t size = model::materials.size();
41
+
42
// Update materials and mapping
43
for (auto& index : materials) {
44
assert(index >= MATERIAL_VOID);
- assert(index < model::materials.size());
45
+ assert(index < size);
46
materials_.push_back(index);
47
map_[index] = materials_.size() - 1;
48
}
0 commit comments