]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make instantiation in tria_accessor.inst.in more systematic 10601/head
authorPeter Munch <peterrmuench@gmail.com>
Thu, 25 Jun 2020 07:48:37 +0000 (09:48 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Thu, 25 Jun 2020 07:52:29 +0000 (09:52 +0200)
source/grid/tria_accessor.inst.in

index eb76c7df2e72bc3ae2701bcf5e8a382f2b8e59e0..2de9bf647a2d4eedf34b8f8ff230b859d53cd8d3 100644 (file)
 
 
 
-for (deal_II_dimension : DIMENSIONS)
+for (deal_II_struct_dimension : DIMENSIONS; deal_II_dimension : DIMENSIONS;
+     deal_II_space_dimension : DIMENSIONS)
   {
-    template class TriaAccessorBase<1, deal_II_dimension>;
-#if deal_II_dimension >= 2
-    template class TriaAccessorBase<2, deal_II_dimension>;
+#if deal_II_struct_dimension <= deal_II_dimension && \
+  deal_II_dimension <= deal_II_space_dimension
+    template class TriaAccessorBase<deal_II_struct_dimension,
+                                    deal_II_dimension,
+                                    deal_II_space_dimension>;
+    template class TriaAccessor<deal_II_struct_dimension,
+                                deal_II_dimension,
+                                deal_II_space_dimension>;
+    template class TriaRawIterator<TriaAccessor<deal_II_struct_dimension,
+                                                deal_II_dimension,
+                                                deal_II_space_dimension>>;
+    template class TriaIterator<TriaAccessor<deal_II_struct_dimension,
+                                             deal_II_dimension,
+                                             deal_II_space_dimension>>;
+    template class TriaActiveIterator<TriaAccessor<deal_II_struct_dimension,
+                                                   deal_II_dimension,
+                                                   deal_II_space_dimension>>;
 #endif
-#if deal_II_dimension >= 3
-    template class TriaAccessorBase<3, deal_II_dimension>;
-#endif
-
-    template class TriaAccessor<1, deal_II_dimension, deal_II_dimension>;
-#if deal_II_dimension >= 2
-    template class TriaAccessor<2, deal_II_dimension, deal_II_dimension>;
-#endif
-#if deal_II_dimension >= 3
-    template class TriaAccessor<3, deal_II_dimension, deal_II_dimension>;
-#endif
-
-
-    template class CellAccessor<deal_II_dimension>;
-    template class TriaRawIterator<
-      TriaAccessor<1, deal_II_dimension, deal_II_dimension>>;
-    template class TriaRawIterator<CellAccessor<deal_II_dimension>>;
-    template class TriaIterator<
-      TriaAccessor<1, deal_II_dimension, deal_II_dimension>>;
-    template class TriaIterator<CellAccessor<deal_II_dimension>>;
-    template class TriaActiveIterator<
-      TriaAccessor<1, deal_II_dimension, deal_II_dimension>>;
-    template class TriaActiveIterator<CellAccessor<deal_II_dimension>>;
-
-
-#if deal_II_dimension >= 2
-    template class TriaRawIterator<
-      TriaAccessor<2, deal_II_dimension, deal_II_dimension>>;
-    template class TriaIterator<
-      TriaAccessor<2, deal_II_dimension, deal_II_dimension>>;
-    template class TriaActiveIterator<
-      TriaAccessor<2, deal_II_dimension, deal_II_dimension>>;
-#endif
-
-#if deal_II_dimension >= 3
-    template class TriaRawIterator<
-      TriaAccessor<3, deal_II_dimension, deal_II_dimension>>;
-    template class TriaIterator<
-      TriaAccessor<3, deal_II_dimension, deal_II_dimension>>;
-    template class TriaActiveIterator<
-      TriaAccessor<3, deal_II_dimension, deal_II_dimension>>;
-    template class CellAccessor<1, 3>;
-#endif
-
-#if deal_II_dimension == 1
-    template class TriaAccessorBase<1, deal_II_dimension, 2>;
-    template class TriaAccessorBase<1, deal_II_dimension, 3>;
-
-    template class TriaAccessor<1, deal_II_dimension, 2>;
-    template class TriaAccessor<1, deal_II_dimension, 3>;
-
-
-#endif
-#if deal_II_dimension == 2
-    template class TriaAccessorBase<1, deal_II_dimension, 3>;
-    template class TriaAccessorBase<2, deal_II_dimension, 3>;
-
-    template class TriaAccessor<1, deal_II_dimension, 3>;
-    template class TriaAccessor<2, deal_II_dimension, 3>;
-#endif
-
-#if deal_II_dimension != 3
-    template class CellAccessor<deal_II_dimension, deal_II_dimension + 1>;
-    template class TriaRawIterator<
-      TriaAccessor<1, deal_II_dimension, deal_II_dimension + 1>>;
-    template class TriaRawIterator<
-      CellAccessor<deal_II_dimension, deal_II_dimension + 1>>;
-    template class TriaIterator<
-      TriaAccessor<1, deal_II_dimension, deal_II_dimension + 1>>;
-    template class TriaIterator<
-      CellAccessor<deal_II_dimension, deal_II_dimension + 1>>;
-    template class TriaActiveIterator<
-      TriaAccessor<1, deal_II_dimension, deal_II_dimension + 1>>;
-    template class TriaActiveIterator<
-      CellAccessor<deal_II_dimension, deal_II_dimension + 1>>;
+  }
 
 
-#  if deal_II_dimension == 2
+for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : DIMENSIONS)
+  {
+#if deal_II_dimension <= deal_II_space_dimension
+    template class CellAccessor<deal_II_dimension, deal_II_space_dimension>;
     template class TriaRawIterator<
-      TriaAccessor<2, deal_II_dimension, deal_II_dimension + 1>>;
+      CellAccessor<deal_II_dimension, deal_II_space_dimension>>;
     template class TriaIterator<
-      TriaAccessor<2, deal_II_dimension, deal_II_dimension + 1>>;
+      CellAccessor<deal_II_dimension, deal_II_space_dimension>>;
     template class TriaActiveIterator<
-      TriaAccessor<2, deal_II_dimension, deal_II_dimension + 1>>;
-#  endif
-
+      CellAccessor<deal_II_dimension, deal_II_space_dimension>>;
 #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.