From: bangerth Date: Fri, 10 Aug 2012 08:27:28 +0000 (+0000) Subject: Convert an input argument with default value into a const reference. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54a414788b0d7e32d4029cee6883cf462599b135;p=dealii-svn.git Convert an input argument with default value into a const reference. git-svn-id: https://svn.dealii.org/trunk@25852 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/dofs/dof_tools.h b/deal.II/include/deal.II/dofs/dof_tools.h index 0f6212e786..6207efca1c 100644 --- a/deal.II/include/deal.II/dofs/dof_tools.h +++ b/deal.II/include/deal.II/dofs/dof_tools.h @@ -2100,7 +2100,7 @@ namespace DoFTools void count_dofs_per_block (const DH &dof, std::vector &dofs_per_block, - std::vector target_block + const std::vector &target_block = std::vector()); /** diff --git a/deal.II/source/dofs/dof_tools.cc b/deal.II/source/dofs/dof_tools.cc index 06c07598f0..c1204f1f43 100644 --- a/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/source/dofs/dof_tools.cc @@ -4872,8 +4872,10 @@ namespace DoFTools void count_dofs_per_block (const DH &dof_handler, std::vector &dofs_per_block, - std::vector target_block) + const std::vector &target_block_) { + std::vector target_block = target_block_; + const dealii::hp::FECollection fe_collection (dof_handler.get_fe()); Assert (fe_collection.size() < 256, ExcNotImplemented()); diff --git a/deal.II/source/dofs/dof_tools.inst.in b/deal.II/source/dofs/dof_tools.inst.in index 5d7124b652..8564f052f0 100644 --- a/deal.II/source/dofs/dof_tools.inst.in +++ b/deal.II/source/dofs/dof_tools.inst.in @@ -763,19 +763,22 @@ template void DoFTools::count_dofs_per_block > ( const DoFHandler&, - std::vector&, std::vector); + std::vector&, + const std::vector &); template void DoFTools::count_dofs_per_block > ( const hp::DoFHandler&, - std::vector&, std::vector); + std::vector&, + const std::vector &); template void DoFTools::count_dofs_per_block > ( const MGDoFHandler&, - std::vector&, std::vector); + std::vector&, + const std::vector &); template void @@ -896,19 +899,22 @@ template void DoFTools::count_dofs_per_block > ( const DoFHandler&, - std::vector&, std::vector); + std::vector&, + const std::vector &); template void DoFTools::count_dofs_per_block > ( const hp::DoFHandler&, - std::vector&, std::vector); + std::vector&, + const std::vector &); template void DoFTools::count_dofs_per_block > ( const MGDoFHandler&, - std::vector&, std::vector); + std::vector&, + const std::vector &); #endif @@ -926,19 +932,22 @@ template void DoFTools::count_dofs_per_block > ( const DoFHandler<1,3>&, - std::vector&, std::vector); + std::vector&, + const std::vector &); template void DoFTools::count_dofs_per_block > ( const hp::DoFHandler<1,3>&, - std::vector&, std::vector); + std::vector&, + const std::vector &); template void DoFTools::count_dofs_per_block > ( const MGDoFHandler<1,3>&, - std::vector&, std::vector); + std::vector&, + const std::vector &); #endif