On Tue, Jul 9, 2019 at 12:43 PM 我 via petsc-users <[email protected]> wrote:
> Hello all, > 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: > [2]PETSC ERROR: --------------------- Error Message > -------------------------------------------------------------- > [2]PETSC ERROR: Petsc has generated inconsistent data > [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. > You need to add this. This will symmetrize the graph. I would guess that hypre does this by default. You can just add this to your .petscrc file to essentially make it the default.
