]> https://gitweb.dealii.org/ - dealii.git/commitdiff
parallel::distributed::BlockVector: do not instantiate std::complex variants for... 18616/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 2 Jul 2025 19:16:46 +0000 (14:16 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 2 Jul 2025 19:18:32 +0000 (14:18 -0500)
source/lac/la_parallel_block_vector.inst.in

index fef7281771162ccc054822e34511c737ff934116..00ec9c4880f14362178abe7aeb4035391f641a78 100644 (file)
@@ -23,12 +23,9 @@ for (SCALAR : REAL_AND_COMPLEX_SCALARS)
 #ifdef DEAL_II_HAVE_CXX20
         static_assert(concepts::is_vector_space_vector<
                       BlockVector<SCALAR, ::dealii::MemorySpace::Host>>);
-        static_assert(concepts::is_vector_space_vector<
-                      BlockVector<SCALAR, ::dealii::MemorySpace::Default>>);
 #endif
 
         template class BlockVector<SCALAR, ::dealii::MemorySpace::Host>;
-        template class BlockVector<SCALAR, ::dealii::MemorySpace::Default>;
 
         template void
         BlockVector<SCALAR, ::dealii::MemorySpace::Host>::
@@ -70,6 +67,26 @@ for (SCALAR : REAL_AND_COMPLEX_SCALARS)
     \}
   }
 
+
+
+for (SCALAR : REAL_SCALARS)
+  {
+    namespace LinearAlgebra
+    \{
+      namespace distributed
+      \{
+#ifdef DEAL_II_HAVE_CXX20
+        static_assert(concepts::is_vector_space_vector<
+                      BlockVector<SCALAR, ::dealii::MemorySpace::Default>>);
+#endif
+
+        template class BlockVector<SCALAR, ::dealii::MemorySpace::Default>;
+      \}
+    \}
+  }
+
+
+
 for (S1 : REAL_AND_COMPLEX_SCALARS; S2 : REAL_SCALARS)
   {
     namespace LinearAlgebra

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.