]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix step_operations() for MemorySpace::Default> 18065/head
authorPeter Munch <peterrmuench@gmail.com>
Fri, 31 Jan 2025 17:29:55 +0000 (18:29 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Fri, 31 Jan 2025 17:29:55 +0000 (18:29 +0100)
include/deal.II/lac/precondition.h

index d907641fe1686f76f9c16e944d80a23ddafb5726..e7a79ec2a1ffd8fa040e0f769104327c2fab68ee 100644 (file)
@@ -1446,14 +1446,19 @@ namespace internal
     }
 
     // 3) specialized implementation for inverse-diagonal preconditioner
-    template <typename MatrixType,
-              typename VectorType,
-              std::enable_if_t<!IsBlockVector<VectorType>::value &&
-                                 !has_vmult_with_std_functions<
-                                   MatrixType,
-                                   VectorType,
-                                   dealii::DiagonalMatrix<VectorType>>,
-                               VectorType> * = nullptr>
+    template <
+      typename MatrixType,
+      typename VectorType,
+      std::enable_if_t<
+        !IsBlockVector<VectorType>::value &&
+          !std::is_same_v<
+            VectorType,
+            LinearAlgebra::distributed::Vector<typename VectorType::value_type,
+                                               MemorySpace::Default>> &&
+          !has_vmult_with_std_functions<MatrixType,
+                                        VectorType,
+                                        dealii::DiagonalMatrix<VectorType>>,
+        VectorType> * = nullptr>
     void
     step_operations(const MatrixType                         &A,
                     const dealii::DiagonalMatrix<VectorType> &preconditioner,

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.