[petsc-users] pass PETSC_NULL_INTEGER to dynamic array of Vec in Frotran90

Mi Yan miyan at us.ibm.com
Wed Feb 20 08:11:08 CST 2013


xlf9014.1  reported error for the below FORTRAN 90 code:

******
MatNullSpace   nullsp
PetscErrorCode   :: ierr
call MatNullSpaceCreate( PETSC_COMM_WORLD, PETSC_TRUE, 0, 
PETSC_NULL_INTEGER, nullsp, ierr );
****
The error message is:
 Actual argument attributes do not match those specified by an accessible 
explicit interface.

The error implies the real argument the attribute of "PETSC_NULL_INTEGER" 
does not match with those specified by the interface.  The interface of 
MatNullSpaceCreate is declared in finclude/ftn-auto/petscmat.h90 ,  whose 
4th dummy argument is declared as
     Vec vecs (*) 

In my code,  PETSC_NULL_INTEGER is passed to an array of Vec.   Is there 
anything wrong here?

thanks,
Mi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130220/eb9b6e82/attachment.html>


More information about the petsc-users mailing list