From f3d7444927c6e9cbfaf1bb526e5233678187e6db Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 7 Feb 2014 22:55:20 +0000 Subject: [PATCH] Rewrite a piece of code in hopes of making it easier on MS VC++. git-svn-id: https://svn.dealii.org/trunk@32436 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/hp/dof_handler.cc | 43 +++++++++----------------------- 1 file changed, 12 insertions(+), 31 deletions(-) diff --git a/deal.II/source/hp/dof_handler.cc b/deal.II/source/hp/dof_handler.cc index 467df4e754..2f271224d7 100644 --- a/deal.II/source/hp/dof_handler.cc +++ b/deal.II/source/hp/dof_handler.cc @@ -2417,45 +2417,26 @@ namespace hp - template <> - void - DoFHandler<1>:: - compute_quad_dof_identities (std::vector &) const - {} - - template <> - void - DoFHandler<1,2>:: - compute_quad_dof_identities (std::vector &) const - {} - - template <> - void - DoFHandler<1,3>:: - compute_quad_dof_identities (std::vector &) const - {} - - template <> + template void - DoFHandler<2>:: + DoFHandler:: compute_quad_dof_identities (std::vector &) const - {} - + { + // this function should only be called for dim<3 where there are + // no quad dof identies. for dim>=3, the specialization below should + // take care of it + Assert (dim < 3, ExcInternalError()); + } template <> void - DoFHandler<2,3>:: - compute_quad_dof_identities (std::vector &) const - {} - - - - template - void - DoFHandler:: + DoFHandler<3,3>:: compute_quad_dof_identities (std::vector &new_dof_indices) const { + const int dim = 3; + const int spacedim = 3; + // we will mark quads that we // have already treated, so first // save and clear the user flags -- 2.39.5