cannot compile using petsc 3.0

Jed Brown jed at 59A2.org
Sun Jan 25 13:37:53 CST 2009


On Sun 2009-01-25 08:30, Waad Subber wrote:
> I just installed petsc-3.0.0-p2. Everything goes well in the installation using
> intel compilers and Intel MKL. When I compile my code I get these error
> messages :
> 
> mfactor.F(21): #error: can't find include file: include/finclude/petsc.h
> mfactor.F(22): #error: can't find include file: include/finclude/petscvec.h
> mfactor.F(23): #error: can't find include file: include/finclude/petscviewer.h
> mfactor.F(24): #error: can't find include file: include/finclude/petscmat.h

You should just include "finclude/petscXXX.h"

Including "include/finclude/petscXXX.h" doesn't work with 3.0.0 because
$PETSC_DIR is no longer a default include directory, everything the
user needs is in $PETSC_DIR/include.

Jed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20090125/904343f4/attachment.pgp>


More information about the petsc-users mailing list