<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hello all,</div><div>I set PCGAMG and KSPGRMES to solve the matrix which is formed by a particle method such as SPH. But when there is always a PETSC ERROR: </div><div>[2]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------<br>[2]PETSC ERROR: Petsc has generated inconsistent data<br>[2]PETSC ERROR: Have un-symmetric graph (apparently). Use '-(null)pc_gamg_sym_graph true' to symetrize the graph or '-(null)pc_gamg_threshold -1' if the matrix is structurally symmetric.<br>[2]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.<br>[2]PETSC ERROR: Petsc Release Version 3.9.1, Apr, 29, 2018 <br>[2]PETSC ERROR: ./MPS on a arch-linux2-cxx-debug named daye-Precision-7920-Tower by daye Tue Jul  9 20:59:39 2019<br>[2]PETSC ERROR: Configure options --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-mpich --download-fblaslapack --download-hypre --with-clanguage=cxx<br>[2]PETSC ERROR: #1 smoothAggs() line 418 in /home/daye/PETSC/petsc-3.9.1/src/ksp/pc/impls/gamg/agg.c<br>[2]PETSC ERROR: #2 PCGAMGCoarsen_AGG() line 970 in /home/daye/PETSC/petsc-3.9.1/src/ksp/pc/impls/gamg/agg.c<br>[2]PETSC ERROR: #3 PCSetUp_GAMG() line 518 in /home/daye/PETSC/petsc-3.9.1/src/ksp/pc/impls/gamg/gamg.c<br>[2]PETSC ERROR: #4 PCSetUp() line 923 in /home/daye/PETSC/petsc-3.9.1/src/ksp/pc/interface/precon.c<br>[2]PETSC ERROR: #5 KSPSetUp() line 381 in /home/daye/PETSC/petsc-3.9.1/src/ksp/ksp/interface/itfunc.c<br>[2]PETSC ERROR: #6 KSPSolve() line 612 in /home/daye/PETSC/petsc-3.9.1/src/ksp/ksp/interface/itfunc.c<br>^C[mpiexec@daye-Precision-7920-Tower] Sending Ctrl-C to processes as requested<br>[mpiexec@daye-Precision-7920-Tower] Press Ctrl-C again to force abort<br></div><div><br></div><div>This matrix can be solved when I use PCHYPRE and KSPGRMES. But when I change the pre-condition to PCGAMG, this error always occurs. Any suggestions about that?</div><div>Thank you at first!</div><div><br></div><div>Daye<br></div></div><br><br><span title="neteasefooter"><p> </p></span>