]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify check for BlockVector 13606/head
authorPeter Munch <peterrmuench@gmail.com>
Sat, 9 Apr 2022 19:16:57 +0000 (21:16 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Sat, 9 Apr 2022 19:16:57 +0000 (21:16 +0200)
include/deal.II/matrix_free/fe_evaluation.h

index 159f5e5d29c3e699f0f584d66a638a7b132391de..b4c4ab72ff3c74602060c8a8b11287c428b5e9c3 100644 (file)
@@ -7247,11 +7247,9 @@ namespace internal
             typename VectorizedArrayType,
             typename VectorType,
             typename EvaluatorType,
-            typename std::enable_if<
-              internal::has_begin<VectorType> &&
-                std::is_same<decltype(std::declval<VectorType>().begin()),
-                             Number *>::value,
-              VectorType>::type * = nullptr>
+            typename std::enable_if<internal::has_begin<VectorType> &&
+                                      !IsBlockVector<VectorType>::value,
+                                    VectorType>::type * = nullptr>
   VectorizedArrayType *
   check_vector_access_inplace(const EvaluatorType &fe_eval, VectorType &vector)
   {
@@ -7297,11 +7295,9 @@ namespace internal
             typename VectorizedArrayType,
             typename VectorType,
             typename EvaluatorType,
-            typename std::enable_if<
-              !internal::has_begin<VectorType> ||
-                !std::is_same<decltype(std::declval<VectorType>().begin()),
-                              Number *>::value,
-              VectorType>::type * = nullptr>
+            typename std::enable_if<!internal::has_begin<VectorType> ||
+                                      IsBlockVector<VectorType>::value,
+                                    VectorType>::type * = nullptr>
   VectorizedArrayType *
   check_vector_access_inplace(const EvaluatorType &, VectorType &)
   {

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.