Skip to content

Commit

Permalink
Fix step_operations() for MemorySpace::Default>
Browse files Browse the repository at this point in the history
  • Loading branch information
peterrum committed Jan 31, 2025
1 parent 23b9dc3 commit 31c254b
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 31c254b

Please sign in to comment.