Make reading of petsc output files backward-compatible.
Merge pull request #386 from ketch/bugfix-io

Make reading of petsc output files backward-compatible.