PETSC headers

Matthew Knepley knepley at mcs.anl.gov
Fri Feb 17 19:22:21 CST 2006


billy at dem.uminho.pt writes:

    Do you have the latest patchlevel for 2.3.0? Also, we just released
2.3.1 and stringly recommend you upgrade since there are no interface changes.
I think this problem was fixed in a patch.

  Matt

> I added this line to my makefile:
>
> include $(PETSC_DIR)/bmake/common/base
>
> In my main.c file I added the header:
>
> #include "petsc.h"
>
> and it worked fine, but when I use instead: 
>
> #include "petscao.h"
> #include "petscsnes.h"
>
> I get the following errors during compilation:
>
> In file included from /home/billy/PETSC/petsc-2.3.0/include/petscao.h:8,
>                  from source/main.c:50:
> /home/billy/PETSC/petsc-2.3.0/include/petscis.h:167: error: parse error before
> numeric constant
> /home/billy/PETSC/petsc-2.3.0/include/petscis.h:167: warning: no semicolon at
> end of struct or union
> /home/billy/PETSC/petsc-2.3.0/include/petscis.h:172: error: parse error before
> '}' token
>
>
> Billy.
>
>
>

-- 
"Failure has a thousand explanations. Success doesn't need one" -- Sir Alec Guiness




More information about the petsc-users mailing list