Reset values of lattice offset tables when allocated (#3188)

This commit is contained in:
Patrick Shriwise 2024-11-08 15:18:15 -06:00 committed by GitHub
parent 339d78c5fa
commit 754f6fa44a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,7 +71,8 @@ public:
//! Allocate offset table for distribcell.
void allocate_offset_table(int n_maps)
{
offsets_.resize(n_maps * universes_.size(), C_NONE);
offsets_.resize(n_maps * universes_.size());
std::fill(offsets_.begin(), offsets_.end(), C_NONE);
}
//! Populate the distribcell offset tables.