mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Reset values of lattice offset tables when allocated (#3188)
This commit is contained in:
parent
339d78c5fa
commit
754f6fa44a
1 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue