added some missing USE_PETSC guards