I received the same error message for example 53 in my machine as well.
./ex53 Vec Object: 1 MPI processes type: seq 1 1 1 1 1 -1 -1 0 -1 -1 [0]PETSC ERROR: --------------------- Error Message -------------------------------------------------------------- [0]PETSC ERROR: [0]PETSC ERROR: Must call DMShellSetGlobalVector() or DMShellSetCreateGlobalVector() [0]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting. [0]PETSC ERROR: Petsc Release Version 3.5.1, Jul, 24, 2014 [0]PETSC ERROR: ./ex53 on a arch-linux2-c-debug named qc by qc Tue Jul 29 14:20:17 2014 [0]PETSC ERROR: Configure options --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-fblaslapack --download-mpich --download-parmetis --download-metis --download-hdf5 [0]PETSC ERROR: #1 DMCreateGlobalVector_Shell() line 245 in /home/qc/bin/petsc-3.5.1/src/dm/impls/shell/dmshell.c [0]PETSC ERROR: #2 DMCreateGlobalVector() line 681 in /home/qc/bin/petsc-3.5.1/src/dm/interface/dm.c [0]PETSC ERROR: #3 DMGetGlobalVector() line 154 in /home/qc/bin/petsc-3.5.1/src/dm/interface/dmget.c [0]PETSC ERROR: --------------------- Error Message -------------------------------------------------------------- [0]PETSC ERROR: Object is in wrong state [0]PETSC ERROR: Matrix is missing diagonal entry 0 [0]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting. [0]PETSC ERROR: Petsc Release Version 3.5.1, Jul, 24, 2014 [0]PETSC ERROR: ./ex53 on a arch-linux2-c-debug named qc by qc Tue Jul 29 14:20:17 2014 [0]PETSC ERROR: Configure options --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-fblaslapack --download-mpich --download-parmetis --download-metis --download-hdf5 [0]PETSC ERROR: #4 MatILUFactorSymbolic_SeqAIJ() line 1738 in /home/qc/bin/petsc-3.5.1/src/mat/impls/aij/seq/aijfact.c [0]PETSC ERROR: #5 MatILUFactorSymbolic() line 6203 in /home/qc/bin/petsc-3.5.1/src/mat/interface/matrix.c [0]PETSC ERROR: #6 PCSetUp_ILU() line 206 in /home/qc/bin/petsc-3.5.1/src/ksp/pc/impls/factor/ilu/ilu.c [0]PETSC ERROR: #7 PCSetUp() line 902 in /home/qc/bin/petsc-3.5.1/src/ksp/pc/interface/precon.c [0]PETSC ERROR: #8 KSPSetUp() line 305 in /home/qc/bin/petsc-3.5.1/src/ksp/ksp/interface/itfunc.c [0]PETSC ERROR: #9 SNESSolve_VINEWTONRSLS() line 506 in /home/qc/bin/petsc-3.5.1/src/snes/impls/vi/rs/virs.c [0]PETSC ERROR: #10 SNESSolve() line 3743 in /home/qc/bin/petsc-3.5.1/src/snes/interface/snes.c [0]PETSC ERROR: #11 main() line 49 in src/main.cpp [0]PETSC ERROR: ----------------End of Error Message -------send entire error message to [email protected] application called MPI_Abort(MPI_COMM_WORLD, 73) - process 0 [unset]: aborting job: application called MPI_Abort(MPI_COMM_WORLD, 73) - process 0
