]> https://gitweb.dealii.org/ - dealii.git/commitdiff
set number_cache.n_global_dofs to the right size in MultiGrid scenario 11130/head
authorMathias Anselmann <mathias.anselmann@posteo.de>
Mon, 2 Nov 2020 18:11:23 +0000 (19:11 +0100)
committerMathias Anselmann <mathias.anselmann@posteo.de>
Mon, 2 Nov 2020 18:16:24 +0000 (19:16 +0100)
source/dofs/dof_handler_policy.cc

index c3fae7123800f7927df0d8de300f208b9ed79510..c1c2ba7aaaf803645e2a255311a41920ddee2c9d 100644 (file)
@@ -4561,7 +4561,7 @@ namespace internal
 
         NumberCache number_cache;
         number_cache.locally_owned_dofs = index_set;
-        number_cache.n_global_dofs      = dof_handler->n_dofs();
+        number_cache.n_global_dofs      = dof_handler->n_dofs(level);
         number_cache.n_locally_owned_dofs =
           number_cache.locally_owned_dofs.n_elements();
         return number_cache;

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.