[petsc-users] MatCreateMPIAdj

Barry Smith bsmith at mcs.anl.gov
Tue Mar 12 16:16:58 CDT 2013


  George,

    Pass PETSC_NULL_INTEGER for that argument.

    Barry

In general where the C function takes a NULL (or PETSC_NULL) you can pass PETSC_NULL_xxx where xxx is the type expected, INTEGER, SCALAR, or OBJECT


On Mar 12, 2013, at 4:10 P
 M, George Pau <gpau at lbl.gov> wrote:

> Hi,
> 
> I am trying to use MatCreateMPIAdj in Fortran.  The command reference says the weight is optional.  What does that mean in terms of Fortran syntax?  Or I must create an weight array in Fortran?
> 
> Thanks,
> George
> 
> 
> -- 
> George Pau
> Earth Sciences Division
> Lawrence Berkeley National Laboratory
> One Cyclotron, MS 74-120
> Berkeley, CA 94720
> 
> (510) 486-7196
> gpau at lbl.gov
> http://esd.lbl.gov/about/staff/georgepau/



More information about the petsc-users mailing list