Skip to content

Commit

Permalink
Merge pull request dealii#18065 from peterrum/relaxation_default
Browse files Browse the repository at this point in the history
Fix step_operations() for MemorySpace::Default
  • Loading branch information
peterrum authored Jan 31, 2025
2 parents 79f4d34 + 31c254b commit 0c9bcae
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions include/deal.II/lac/precondition.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0c9bcae

Please sign in to comment.