]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Merge pull request #10268 from peterrum/dofaccessor_get_set_dof_indices
authorBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 26 May 2020 13:11:03 +0000 (09:11 -0400)
committerGitHub <noreply@github.com>
Tue, 26 May 2020 13:11:03 +0000 (09:11 -0400)
1  2 
source/dofs/dof_handler_policy.cc

index 1ff9c22043cbe33b7a80161177fb6405b1b95b5d,bca98b1ffd56597264a02f3137a2958a30e3108c..c73670e181e5e80acec8566cfdacbf9389158ada
@@@ -1667,10 -1668,14 +1667,13 @@@ namespace interna
                if ((subdomain_id == numbers::invalid_subdomain_id) ||
                    (cell->subdomain_id() == subdomain_id))
                  {
 -                  std::vector<types::global_dof_index> 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)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.