[petsc-users] compile errors with petsc-dev
Sean Farley
sean at mcs.anl.gov
Mon Apr 4 13:46:43 CDT 2011
>
> gaurish108 at telang:~/Desktop/LSQR_progress$ make main
> /home/gaurish108/software/petsc-dev/linux-gnu-c/bin/mpicc -o main.o -c
> -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3
> -I/home/gaurish108/software/petsc-dev/include
> -I/home/gaurish108/software/petsc-dev/linux-gnu-c/include -D__INSDIR__=
> main.c
> main.c: In function ‘main’:
> main.c:17: error: ‘PetscTruth’ undeclared (first use in this function)
> main.c:17: error: (Each undeclared identifier is reported only once
> main.c:17: error: for each function it appears in.)
> main.c:17: error: expected ‘;’ before ‘flg_b’
> main.c:26: error: ‘flg_b’ undeclared (first use in this function)
>
This error is because in petsc-dev PetscTruth changed to PetscBool:
http://www.mcs.anl.gov/petsc/petsc-as/documentation/changes/dev.html
"Changed PetscTruth to PetscBool, PETSC_TRUTH to PETSC_BOOL,
PetscOptionsTruth to PetscOptionsBool, etc."
main.c:27: error: macro "SETERRQ" requires 3 arguments, but only 2 given
> main.c:27: error: ‘SETERRQ’ undeclared (first use in this function)
Also, SETERRQX changed:
"PetscError() and SETERRQX() now take a MPI_Comm as the first argument to
indicate where the error is known. If you don't know what communicator use
then pass in PETSC_COMM_SELF"
Hope that helps,
Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110404/8e25c65b/attachment.htm>
More information about the petsc-users
mailing list