updated petsc mpi detection
Merge branch 'tmp'