This not helps, there are still undeclared variables like: CARRAY_FLAGS PETSC_COOKIE UPDATEIFCOPY PETSC_FILE_RDONLY PETSC_FILE_WRONLY PETSC_FILE_CREATE KSP_CONVERGED_QCG_NEG_CURVE KSP_CONVERGED_QCG_CONSTRAINED I'm affraid petsc4py wrappers are broken for newer versions of PETSc...
You just need petsc.h now. The structs are defined in include/private/petscimpl.h
One more question then:
In case of petsc4py, I tried to compile it but with no success because of
the lack
of include file petschead.h in the petsc distribution (2.3.1-p16). I
guess, it was removed for
some reason. Maybe you could tell me where are now the definitions from
this file.
-- Marek Wojciechowski