[petsc-users] PETSC ERROR: Petsc has generated inconsistent data with PCGAMG and KSPGRMES

Mark Adams mfadams at lbl.gov
Tue Jul 9 15:44:40 CDT 2019


On Tue, Jul 9, 2019 at 12:43 PM 我 via petsc-users <petsc-users at mcs.anl.gov>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190709/16404850/attachment-0001.html>


More information about the petsc-users mailing list