People are getting sloppy with declaring C variables willy-nilly inside subroutines in PETSc code. This is not allowed. Variables must be declared immediately at the beginning of functions or after { they cannot be put after code. Thanks Barry