Changed if-condition for PETSc version according to the suggestion by Nori