From: bangerth Date: Fri, 7 Feb 2014 22:55:20 +0000 (+0000) Subject: Rewrite a piece of code in hopes of making it easier on MS VC++. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d212f83529d6845676f2f3745e7081f3cf9a18e2;p=dealii-svn.git 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 --- 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