Skip to content

Commit a9f56e9

Browse files
authored
Merge pull request #4224 from lindsayad/block-restriction-for-sc-dof-map
Make sure dof index containers sized even when not active on block
2 parents 8beb1e5 + 2905cb5 commit a9f56e9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/numerics/static_condensation_dof_map.C

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,12 @@ void StaticCondensationDofMap::reinit()
215215
for (const auto vg : make_range(_dof_map.n_variable_groups()))
216216
{
217217
const auto & var_group = _dof_map.variable_group(vg);
218-
if (!var_group.active_on_subdomain(sub_id))
219-
continue;
220-
221218
for (const auto v : make_range(var_group.n_variables()))
222219
{
223220
const auto var_num = var_group.number(v);
224221
dof_data.reduced_space_indices.resize(var_num + 1);
222+
if (!var_group.active_on_subdomain(sub_id))
223+
continue;
225224
elem_uncondensed_dofs.clear();
226225
_dof_map.dof_indices(elem,
227226
elem_dofs,

0 commit comments

Comments
 (0)