Cannot use PETSC_DEFAULT in MatMatMult

Barry Smith bsmith at mcs.anl.gov
Thu May 8 14:15:19 CDT 2008


     In Fortran you must use PETSC_DEFAULT_DOUBLE_PRECISION.

     I'll make sure this is may clear in the docs

    Barry

    There is also a PETSC_DEFAULT_INTEGER for Fortran

On May 8, 2008, at 1:58 PM, Waad Subber wrote:

> Hi,
>
> I am trying to multiply to spares matrices. I am using PETSC_DEFAULT  
> for the fill ratio; however, I cannot compile the code I get the  
> following error message :
>
> Error: master.F, line 55: This name does not have a type, and must  
> have an explicit type.   [PETSC_DEFAULT]
>        call MatMatMult(A,B,MAT_REUSE_MATRIX,PETSC_DEFAULT,C,ierr)
> ----------------------------------------------------------^
> compilation aborted for master.F (code 1)
>
> Thanks
>
> Waad
>
>
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  
> Try it now.




More information about the petsc-users mailing list