From a2aba6b9025047f5223b27b64c200a32b3406962 Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 19 Dec 2003 11:33:24 +0000 Subject: [PATCH] Cast the DoFHandler object to the type the called function wants to see. On the main branch, this is what the compiler implicitly does anyway, but on the hp branch the first argument is a template argument, and no cast is performed there. Since clarity wouldn't hurt here as well, make this change also on the main branch. git-svn-id: https://svn.dealii.org/trunk@8274 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/multigrid/mg_transfer_block.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deal.II/deal.II/source/multigrid/mg_transfer_block.cc b/deal.II/deal.II/source/multigrid/mg_transfer_block.cc index 51e3a2bf7b..73e6fe919b 100644 --- a/deal.II/deal.II/source/multigrid/mg_transfer_block.cc +++ b/deal.II/deal.II/source/multigrid/mg_transfer_block.cc @@ -113,7 +113,9 @@ void MGTransferBlockBase::build_matrices ( } component_start.resize(target_component.size()); - DoFTools::count_dofs_per_component(mg_dof, component_start, target_component); + DoFTools:: + count_dofs_per_component (static_cast&>(mg_dof), + component_start, target_component); unsigned int k=0; for (unsigned int i=0;i