]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Declare the existence of explicit instantiations.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 18 Jan 2023 00:49:55 +0000 (17:49 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 26 Jan 2023 04:30:26 +0000 (21:30 -0700)
include/deal.II/hp/mapping_collection.h
source/hp/mapping_collection.cc

index 17dd12662de691c11f1f9859f7a2b5b64666dc76..15fb484424f93fbb7c64db8a49b35465fcec1ead 100644 (file)
@@ -151,6 +151,7 @@ namespace hp
   };
 
 
+
   /* --------------- inline functions ------------------- */
 
   template <int dim, int spacedim>
@@ -172,6 +173,26 @@ namespace hp
       push_back(*p);
   }
 
+
+
+  template <int dim, int spacedim>
+  MappingCollection<dim, spacedim>
+    StaticMappingQ1<dim, spacedim>::mapping_collection =
+      MappingCollection<dim, spacedim>(MappingQ1<dim, spacedim>{});
+
+
+#ifndef DOXYGEN
+  // Declare the existence of explicit instantiations of the class
+  // above to avoid certain warnings issues by clang and
+  // newer (LLVM-based) Intel compilers:
+  extern template struct StaticMappingQ1<1, 1>;
+  extern template struct StaticMappingQ1<1, 2>;
+  extern template struct StaticMappingQ1<1, 3>;
+  extern template struct StaticMappingQ1<2, 2>;
+  extern template struct StaticMappingQ1<2, 3>;
+  extern template struct StaticMappingQ1<3, 3>;
+#endif
+
 } // namespace hp
 
 
index e3d097524070a537d9860c2a1ccedde4676ede59..49647fa51cefaf17f811cf9cc63c69afef7b0df7 100644 (file)
@@ -73,12 +73,6 @@ namespace hp
       return mapping;
     }
   } // namespace
-
-  template <int dim, int spacedim>
-  MappingCollection<dim, spacedim>
-    StaticMappingQ1<dim, spacedim>::mapping_collection =
-      MappingCollection<dim, spacedim>(get_static_mapping_q1<dim, spacedim>());
-
 } // namespace hp
 
 

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.