Skip to content

Commit 9a1954d

Browse files
committed
Added restore function wrappers, and added MatMPIAIJGetSeqAIJ
1 parent 5ec120a commit 9a1954d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/api.jl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -543,12 +543,16 @@ Base.unsafe_convert(::Type{Ptr{Cvoid}},v::Mat) = v.ptr
543543
@wrapper(:MatSetFromOptions,PetscErrorCode,(Mat,),(mat,),"/Mat/MatSetFromOptions.html")
544544

545545
# New
546-
@wrapper(:MatMPIAIJGetLocalMat,PetscErrorCode,(Mat,MatReuse,Ptr{Mat}), (A,scall,A_local),"Mat/MatMPIAIJGetLocalMat.html")
546+
#include "petscmat.h"
547+
# PetscErrorCode MatMPIAIJGetSeqAIJ(Mat A, Mat *Ad, Mat *Ao, const PetscInt *colmap[])
548+
@wrapper(:MatMPIAIJGetSeqAIJ,PetscErrorCode,(Mat,Ptr{Mat},Ptr{Mat},Ptr{Ptr{PetscInt}}),(A,Ad,Ao,colmap),"Mat/MatMPIAIJGetSeqAIJ.html")
549+
@wrapper(:MatMPIAIJGetLocalMat,PetscErrorCode,(Mat,MatReuse,Ptr{Mat}),(A,scall,A_local),"Mat/MatMPIAIJGetLocalMat.html")
547550
@wrapper(:MatGetRowIJ,PetscErrorCode,(Mat,PetscInt,PetscBool,PetscBool,Ptr{PetscInt},Ptr{Ptr{PetscInt}},Ptr{Ptr{PetscInt}},Ptr{PetscBool}),(A,shift,symmetric,inodecompressed,n,ia,ja,done),"Mat/MatGetRowIJ.html")
548551
@wrapper(:MatRestoreRowIJ,PetscErrorCode,(Mat,PetscInt,PetscBool,PetscBool,Ptr{PetscInt},Ptr{Ptr{PetscInt}},Ptr{Ptr{PetscInt}},Ptr{PetscBool}),(A,shift,symmetric,inodecompressed,n,ia,ja,done),"Mat/MatRestoreRowIJ.html")
549-
# @wrapper(:MatRestoreRowIJ,PetscErrorCode,(Mat,PetscInt,PetscBool,PetscBool,Ptr{PetscInt},Ptr{PetscInt},Ptr{PetscInt},Ptr{PetscBool}),(A,shift,symmetric,inodecompressed,n,ia,ja,done),"Mat/MatRestoreRowIJ.html")
550-
@wrapper(:MatSeqAIJGetArrayRead, PetscErrorCode,(Mat, Ptr{Ptr{PetscScalar}}), (A, array),"Mat/MatSeqAIJGetArrayRead.html")
551-
552+
@wrapper(:MatSeqAIJGetArray,PetscErrorCode,(Mat,Ptr{Ptr{PetscScalar}}),(A,array),"Mat/MatSeqAIJGetArrayRead.html")
553+
@wrapper(:MatSeqAIJRestoreArray,PetscErrorCode,(Mat,Ptr{Ptr{PetscScalar}}),(A,array),"Mat/MatSeqAIJRestoreArray.html")
554+
@wrapper(:MatSeqAIJGetArrayRead,PetscErrorCode,(Mat,Ptr{Ptr{PetscScalar}}),(A,array),"Mat/MatSeqAIJGetArrayRead.html")
555+
@wrapper(:MatSeqAIJRestoreArrayRead,PetscErrorCode,(Mat,Ptr{Ptr{PetscScalar}}),(A,array),"Mat/MatSeqAIJRestoreArrayRead.html")
552556

553557
# Matrix products related
554558

0 commit comments

Comments
 (0)