From: Peter Munch Date: Fri, 31 Jan 2025 17:29:55 +0000 (+0100) Subject: Fix step_operations() for MemorySpace::Default> X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F18065%2Fhead;p=dealii.git Fix step_operations() for MemorySpace::Default> --- diff --git a/include/deal.II/lac/precondition.h b/include/deal.II/lac/precondition.h index d907641fe1..e7a79ec2a1 100644 --- a/include/deal.II/lac/precondition.h +++ b/include/deal.II/lac/precondition.h @@ -1446,14 +1446,19 @@ namespace internal } // 3) specialized implementation for inverse-diagonal preconditioner - template ::value && - !has_vmult_with_std_functions< - MatrixType, - VectorType, - dealii::DiagonalMatrix>, - VectorType> * = nullptr> + template < + typename MatrixType, + typename VectorType, + std::enable_if_t< + !IsBlockVector::value && + !std::is_same_v< + VectorType, + LinearAlgebra::distributed::Vector> && + !has_vmult_with_std_functions>, + VectorType> * = nullptr> void step_operations(const MatrixType &A, const dealii::DiagonalMatrix &preconditioner,