mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Fix bin index to DoF ID mapping bug in adaptive libMesh meshes (#3206)
This commit is contained in:
parent
2d988a69a1
commit
a9fe2a05c1
1 changed files with 4 additions and 4 deletions
|
|
@ -3007,10 +3007,10 @@ void LibMesh::initialize()
|
|||
// contiguous in ID space, so we need to map from bin indices (defined over
|
||||
// active elements) to global dof ids
|
||||
if (adaptive_) {
|
||||
bin_to_elem_map_.reserve(m_->n_active_local_elem());
|
||||
elem_to_bin_map_.resize(m_->n_local_elem(), -1);
|
||||
for (auto it = m_->active_local_elements_begin();
|
||||
it != m_->active_local_elements_end(); it++) {
|
||||
bin_to_elem_map_.reserve(m_->n_active_elem());
|
||||
elem_to_bin_map_.resize(m_->n_elem(), -1);
|
||||
for (auto it = m_->active_elements_begin(); it != m_->active_elements_end();
|
||||
it++) {
|
||||
auto elem = *it;
|
||||
|
||||
bin_to_elem_map_.push_back(elem->id());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue