From: Mathias Anselmann Date: Mon, 2 Nov 2020 18:11:23 +0000 (+0100) Subject: set number_cache.n_global_dofs to the right size in MultiGrid scenario X-Git-Tag: v9.3.0-rc1~947^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11130%2Fhead;p=dealii.git set number_cache.n_global_dofs to the right size in MultiGrid scenario --- diff --git a/source/dofs/dof_handler_policy.cc b/source/dofs/dof_handler_policy.cc index c3fae71238..c1c2ba7aaa 100644 --- a/source/dofs/dof_handler_policy.cc +++ b/source/dofs/dof_handler_policy.cc @@ -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;