]> https://gitweb.dealii.org/ - dealii.git/commitdiff
make instantiations fulfill chartdim<=spacedim 3628/head
authorKarl Ljungkvist <k.ljungkvist@gmail.com>
Wed, 23 Nov 2016 13:46:35 +0000 (14:46 +0100)
committerKarl Ljungkvist <k.ljungkvist@gmail.com>
Wed, 23 Nov 2016 15:26:16 +0000 (16:26 +0100)
source/grid/manifold.inst.in
source/grid/manifold_lib.inst.in

index 3cd1d67db9eea229dde54a82875a43235d01b95d..4f2cea5dc5885cb548884c7423cf6c42d184816b 100644 (file)
@@ -20,12 +20,14 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension :  SPACE_DIMENSIONS
 #if deal_II_dimension <= deal_II_space_dimension
     template class Manifold<deal_II_dimension, deal_II_space_dimension>;
     template class FlatManifold<deal_II_dimension, deal_II_space_dimension>;
-
-    template class ChartManifold<deal_II_dimension, deal_II_space_dimension, 1>;
-    template class ChartManifold<deal_II_dimension, deal_II_space_dimension, 2>;
-    template class ChartManifold<deal_II_dimension, deal_II_space_dimension, 3>;
 #endif
 }
 
-
-
+for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension :  SPACE_DIMENSIONS; deal_II_chart_dimension :  DIMENSIONS)
+{
+#if deal_II_dimension <= deal_II_space_dimension
+#if deal_II_chart_dimension <= deal_II_space_dimension
+    template class ChartManifold<deal_II_dimension, deal_II_space_dimension, deal_II_chart_dimension>;
+#endif
+#endif
+}
index 876da5d0ff1d3909390417f5f55beecfa66ce6d1..cbb1aeae3bceb60d3866b19632a4e831d3681ffe 100644 (file)
@@ -20,12 +20,17 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension :  SPACE_DIMENSIONS
     template class PolarManifold<deal_II_dimension, deal_II_space_dimension>;
     template class SphericalManifold<deal_II_dimension, deal_II_space_dimension>;
     template class CylindricalManifold<deal_II_dimension, deal_II_space_dimension>;
-    template class FunctionManifold<deal_II_dimension, deal_II_space_dimension, 1>;
-    template class FunctionManifold<deal_II_dimension, deal_II_space_dimension, 2>;
-    template class FunctionManifold<deal_II_dimension, deal_II_space_dimension, 3>;
 #endif
 #if deal_II_dimension == deal_II_space_dimension
     template class TorusManifold<deal_II_dimension>;
 #endif
 }
 
+for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension :  SPACE_DIMENSIONS; deal_II_chart_dimension :  DIMENSIONS)
+{
+#if deal_II_dimension <= deal_II_space_dimension
+#if deal_II_chart_dimension <= deal_II_space_dimension
+    template class FunctionManifold<deal_II_dimension, deal_II_space_dimension, deal_II_chart_dimension>;
+#endif
+#endif
+}

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.