From 85c1ec944758636a6db9fcca45ea79a6599a7d0f Mon Sep 17 00:00:00 2001 From: Justin Kin Jun Hew Date: Thu, 28 May 2026 16:54:11 +1000 Subject: [PATCH] add updates --- src/adjoint_petsc/util/mat_iterator_util.hpp | 16 ++++++++-------- src/adjoint_petsc/util/vec_iterator_util.hpp | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/adjoint_petsc/util/mat_iterator_util.hpp b/src/adjoint_petsc/util/mat_iterator_util.hpp index ae67e4c..0aae872 100644 --- a/src/adjoint_petsc/util/mat_iterator_util.hpp +++ b/src/adjoint_petsc/util/mat_iterator_util.hpp @@ -277,8 +277,8 @@ PetscErrorCode MatIterateAllEntries(Func&& func, First&& mat, Other&& ... other) return iterator_implementation::iterateMatAIJ( func, iterator_implementation::getUnderlyingMat(std::forward(mat)), - iterator_implementation::MatAIJValueAccess>(std::forward(mat)), - iterator_implementation::MatAIJValueAccess>(std::forward(other))... + iterator_implementation::MatAIJValueAccess>>(std::forward(mat)), + iterator_implementation::MatAIJValueAccess>>(std::forward(other))... ); } else if(ADMatType::ADMatSeqAIJ == type) { @@ -286,8 +286,8 @@ PetscErrorCode MatIterateAllEntries(Func&& func, First&& mat, Other&& ... other) func, iterator_implementation::getUnderlyingMat(std::forward(mat)), nullptr, - iterator_implementation::MatSeqAIJValueAccess>(std::forward(mat)), - iterator_implementation::MatSeqAIJValueAccess>(std::forward(other))... + iterator_implementation::MatSeqAIJValueAccess>>(std::forward(mat)), + iterator_implementation::MatSeqAIJValueAccess>>(std::forward(other))... ); } else { @@ -305,8 +305,8 @@ PetscErrorCode MatAccessValue(Func&& func, PetscInt row, PetscInt col, First&& m row, col, iterator_implementation::getUnderlyingMat(std::forward(mat)), - iterator_implementation::MatAIJValueAccess>(std::forward(mat)), - iterator_implementation::MatAIJValueAccess>(std::forward(other))... + iterator_implementation::MatAIJValueAccess>>(std::forward(mat)), + iterator_implementation::MatAIJValueAccess>>(std::forward(other))... ); } else if(ADMatType::ADMatSeqAIJ == type) { @@ -316,8 +316,8 @@ PetscErrorCode MatAccessValue(Func&& func, PetscInt row, PetscInt col, First&& m col, iterator_implementation::getUnderlyingMat(std::forward(mat)), nullptr, - iterator_implementation::MatSeqAIJValueAccess>(std::forward(mat)), - iterator_implementation::MatSeqAIJValueAccess>(std::forward(other))... + iterator_implementation::MatSeqAIJValueAccess>>(std::forward(mat)), + iterator_implementation::MatSeqAIJValueAccess>>(std::forward(other))... ); } else { diff --git a/src/adjoint_petsc/util/vec_iterator_util.hpp b/src/adjoint_petsc/util/vec_iterator_util.hpp index 9faf42e..0127d01 100644 --- a/src/adjoint_petsc/util/vec_iterator_util.hpp +++ b/src/adjoint_petsc/util/vec_iterator_util.hpp @@ -154,8 +154,8 @@ PetscErrorCode VecIterateIndexSet(Func&& func, PetscInt n, PetscInt const* ix, F n, ix, iterator_implementation::getUnderlyingVec(std::forward(vec)), - iterator_implementation::VecLocalValueAccess>(std::forward(vec)), - iterator_implementation::VecLocalValueAccess>(std::forward(other))... + iterator_implementation::VecLocalValueAccess>>(std::forward(vec)), + iterator_implementation::VecLocalValueAccess>>(std::forward(other))... ); } else {