From: Bruno Turcksin Date: Tue, 26 May 2020 13:11:03 +0000 (-0400) Subject: Merge pull request #10268 from peterrum/dofaccessor_get_set_dof_indices X-Git-Tag: v9.3.0-rc1~1559 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a8958e2a6e52c1a8bf812a9c60d845320e70dea;p=dealii.git Merge pull request #10268 from peterrum/dofaccessor_get_set_dof_indices --- 5a8958e2a6e52c1a8bf812a9c60d845320e70dea diff --cc source/dofs/dof_handler_policy.cc index 1ff9c22043,bca98b1ffd..c73670e181 --- a/source/dofs/dof_handler_policy.cc +++ b/source/dofs/dof_handler_policy.cc @@@ -1667,10 -1668,14 +1667,13 @@@ namespace interna if ((subdomain_id == numbers::invalid_subdomain_id) || (cell->subdomain_id() == subdomain_id)) { - std::vector dof_indices( - cell->get_fe().dofs_per_cell); + dof_indices.resize(cell->get_fe().dofs_per_cell); - internal::DoFAccessorImplementation::get_dof_indices( - *cell, dof_indices, cell->active_fe_index()); + // circumvent cache + internal::DoFAccessorImplementation::Implementation:: + get_dof_indices(*cell, + dof_indices, + cell->active_fe_index()); for (auto &dof_index : dof_indices) if (dof_index == numbers::invalid_dof_index)