[petsc-dev] cannot declare variables except at top of function declaration or right after {

Barry Smith bsmith at mcs.anl.gov
Wed Aug 17 13:03:53 CDT 2011


   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




More information about the petsc-dev mailing list