Bugfix from master

I'm using PETSc 3.2.1 for testing this branch
Only output warnings from rank 0