From d74cda985ccecf24766fd0592764c7de0bd287e9 Mon Sep 17 00:00:00 2001 From: Mathias Anselmann Date: Mon, 2 Nov 2020 19:11:23 +0100 Subject: [PATCH] set number_cache.n_global_dofs to the right size in MultiGrid scenario --- source/dofs/dof_handler_policy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5