Correct a minor violation of coding standards.

for (PetscInt i=0...)
is safer than 
PetscInt i; for (i=0...)