From 55bb508079fcf0afa3ffc411a520a0a759935639 Mon Sep 17 00:00:00 2001 From: kanschat Date: Sun, 26 May 2013 09:37:10 +0000 Subject: [PATCH] simplify logic git-svn-id: https://svn.dealii.org/trunk@29603 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/multigrid/mg_transfer_prebuilt.cc | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/deal.II/source/multigrid/mg_transfer_prebuilt.cc b/deal.II/source/multigrid/mg_transfer_prebuilt.cc index 17f69b5864..85c5c74031 100644 --- a/deal.II/source/multigrid/mg_transfer_prebuilt.cc +++ b/deal.II/source/multigrid/mg_transfer_prebuilt.cc @@ -273,15 +273,9 @@ void MGTransferPrebuilt::build_matrices ( level_cell->get_mg_dof_indices (level_dof_indices); for (unsigned int i=0; iat_refinement_edge(level,level_dof_indices[i])) - temp_copy_indices[level_dof_indices[i]] = global_dof_indices[i]; - } - else - temp_copy_indices[level_dof_indices[i]] = global_dof_indices[i]; - } + if (mg_constrained_dofs == 0 + || !mg_constrained_dofs->at_refinement_edge(level,level_dof_indices[i])) + temp_copy_indices[level_dof_indices[i]] = global_dof_indices[i]; } // now all the active dofs got a valid entry, -- 2.39.5