]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Explicitly declare some specializations.
authorDavid Wells <drwells@email.unc.edu>
Wed, 7 Aug 2019 15:35:44 +0000 (09:35 -0600)
committerDavid Wells <drwells@email.unc.edu>
Wed, 7 Aug 2019 16:03:43 +0000 (10:03 -0600)
include/deal.II/grid/grid_tools.h

index 38d40ff9af157ca6aae1517ef7a60dd96d1a402a..095cbb28a71b3ab29b73ba913718f15f2bfd0f33 100644 (file)
@@ -3000,6 +3000,24 @@ namespace GridTools
 
 namespace GridTools
 {
+  // declare specializations
+  template <>
+  double
+  cell_measure<1>(const std::vector<Point<1>> &,
+                  const unsigned int (&)[GeometryInfo<1>::vertices_per_cell]);
+
+  template <>
+  double
+  cell_measure<2>(const std::vector<Point<2>> &,
+                  const unsigned int (&)[GeometryInfo<2>::vertices_per_cell]);
+
+  template <>
+  double
+  cell_measure<3>(const std::vector<Point<3>> &,
+                  const unsigned int (&)[GeometryInfo<3>::vertices_per_cell]);
+
+
+
   template <int dim, typename T>
   double
   cell_measure(const T &, ...)
@@ -3008,6 +3026,8 @@ namespace GridTools
     return std::numeric_limits<double>::quiet_NaN();
   }
 
+
+
   template <int dim, typename Predicate, int spacedim>
   void
   transform(const Predicate &             predicate,

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.