From: wolf Date: Fri, 19 Dec 2003 11:33:24 +0000 (+0000) Subject: Cast the DoFHandler object to the type the called function wants to see. On the main... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2aba6b9025047f5223b27b64c200a32b3406962;p=dealii-svn.git 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 --- 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