# [petsc-users] GMRES error

Fri Mar 28 07:50:43 CDT 2014

```I get this error in the middle of a GMRES iteration.  Any ideas?

0 SNES Function norm 6.067786990073e+17

Residual norms for fsa_ solve.

0 KSP Residual norm 6.067786990073e+17

1 KSP Residual norm 6.037192129591e+17

2 KSP Residual norm 5.852390318109e+17

3 KSP Residual norm 5.562063100790e+17

4 KSP Residual norm 5.284787094948e+17

5 KSP Residual norm 5.183753281867e+17

6 KSP Residual norm 4.813052731918e+17

7 KSP Residual norm 4.571658388437e+17

8 KSP Residual norm 4.326765203018e+17

9 KSP Residual norm 4.044786063878e+17

10 KSP Residual norm 3.852338418686e+17

11 KSP Residual norm 3.533696733608e+17

12 KSP Residual norm 3.242503119640e+17

13 KSP Residual norm 2.946010215248e+17

14 KSP Residual norm 2.642699328492e+17

15 KSP Residual norm 2.365537803535e+17

16 KSP Residual norm 1.841438363878e+17

17 KSP Residual norm 1.333683638359e+17

18 KSP Residual norm 7.325375319129e+16

19 KSP Residual norm 2.964254455676e+16

20 KSP Residual norm 1.216650547542e+16                    [3]PETSC
ERROR: --------------------- Error Message
------------------------------------

[3]PETSC ERROR: Invalid argument!

[3]PETSC ERROR: Scalar value must be same on all processes, argument # 3!

[3]PETSC ERROR:
------------------------------------------------------------------------

[3]PETSC ERROR: Petsc Development GIT revision:
-0700
[3]PETSC ERROR: See docs/changes/index.html for recent updates.

[3]PETSC ERROR: See docs/faq.html for hints about trouble shooting.

[3]PETSC ERROR: See docs/index.html for manual pages.

[3]PETSC ERROR:
------------------------------------------------------------------------

[3]PETSC ERROR: ../../XGC1_3/xgc2 on a arch-xc30-dbg named nid04306 by
madams Fri Mar 28 05:34:54 2014

[3]PETSC ERROR: Configure run at Tue Dec 31 14:53:42 2013

[3]PETSC ERROR: Configure options --COPTFLAGS="-g -no-ipo"
--with-cxx=CC --with-cxxlib-autodetect=0 --with-debugging=1 --with-fc=ftn
--with-fortranlib-autodetect=0
--with-hdf5-dir=/opt/cray/hdf5-parallel/1.8.9/intel/120/
--with-shared-libraries=0 --with-x=0 LIBS=-lstdc++ PETSC_ARCH=arch-xc30-dbg

[3]PETSC ERROR:
------------------------------------------------------------------------

[3]PETSC ERROR: VecMAXPY() line 1257 in

[3]PETSC ERROR: KSPGMRESBuildSoln() line 353 in

[3]PETSC ERROR: KSPGMRESCycle() line 211 in

[3]PETSC ERROR: KSPSolve_GMRES() line 235 in

[3]PETSC ERROR: KSPSolve() line 432 in

[3]PETSC ERROR: SNESSolve_KSPONLY() line 44 in