[petsc-users] Fortran interface of MatNullSpaceCreate

frank hengjiew at uci.edu
Mon Feb 26 16:18:22 CST 2018


Hello,

I have a question of the Fortran interface of subroutine MatNullSpaceCreate.

I tried to call the subroutine in the following form:

Vec                 :: dummyVec, dummyVecs(1)
MatNullSpace :: nullspace
INTEGER         :: ierr

(a) call MatNullSpaceCreate( PETSC_COMM_WORLD, PETSC_TRUE, 
PETSC_NULL_INTEGER, dummyVec, nullspace, ierr)

(b) call MatNullSpaceCreate( PETSC_COMM_WORLD, PETSC_TRUE, 
PETSC_NULL_INTEGER, dummyVecs, nullspace, ierr)

(a) and (b) gave me the same error during compilation: no specific 
subroutine for the generic MatNullSpaceCreate.

I am using the latest version of Petsc. I just did a "git pull" and 
re-build it.
How can I call the subroutine ?

In addition, I found two 'petscmat.h90' : 
petsc/include/petsc/finclude/ftn-auto/petscmat.h90 and 
petsc/src/mat/f90-mod/petscmat.h90.
The former defines a subroutine MatNullSpaceCreate in the above form 
(b). The latter provides generic interface for both (a) and (b).
I am not sure if this relates to the error I get.

Thank you.

Frank


More information about the petsc-users mailing list