]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rewrite a piece of code in hopes of making it easier on MS VC++.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 7 Feb 2014 22:55:20 +0000 (22:55 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 7 Feb 2014 22:55:20 +0000 (22:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@32436 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/hp/dof_handler.cc

index 467df4e75449205e772146d0fbfe285ae284ff6b..2f271224d7dd89320fa48683269137af903eccd7 100644 (file)
@@ -2417,45 +2417,26 @@ namespace hp
 
 
 
-  template <>
-  void
-  DoFHandler<1>::
-  compute_quad_dof_identities (std::vector<types::global_dof_index> &) const
-  {}
-
-  template <>
-  void
-  DoFHandler<1,2>::
-  compute_quad_dof_identities (std::vector<types::global_dof_index> &) const
-  {}
-
-  template <>
-  void
-  DoFHandler<1,3>::
-  compute_quad_dof_identities (std::vector<types::global_dof_index> &) const
-  {}
-
-  template <>
+  template <int dim, int spacedim>
   void
-  DoFHandler<2>::
+  DoFHandler<dim,spacedim>::
   compute_quad_dof_identities (std::vector<types::global_dof_index> &) 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<types::global_dof_index> &) const
-  {}
-
-
-
-  template<int dim, int spacedim>
-  void
-  DoFHandler<dim,spacedim>::
+  DoFHandler<3,3>::
   compute_quad_dof_identities (std::vector<types::global_dof_index> &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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.