added error logging in the case where gmres returns a nonzero error indicator
Merge pull request #1610 from naylor-b/gmres

added error logging in the case where gmres returns a nonzero error indicator