Major improvements for readPetscLog.py