[petsc-users] PCDiagonalScale

Klaij, Christiaan C.Klaij at marin.nl
Thu Feb 24 05:14:27 CST 2011

Thanks Jed. Sorry for the typo, obviously I meant to write PCDiagonalScaleSet, not PCDiagonalSet.
I'm using FGMRES but apparently it doesn't support diagonal scaling.


From: five9a2 at gmail.com [five9a2 at gmail.com] on behalf of Jed Brown [jed at 59A2.org]

Sent: Thursday, February 24, 2011 10:50 AM

On Thu, Feb 24, 2011 at 08:16, Klaij, Christiaan
<C.Klaij at marin.nl> wrote:

OK. So if I understand correctly (?) in Fortan all I need is:

call KSPGetPC

call PCDiagonalSet

As per my last message, it is spelled PCDiagonalScaleSet in petsc-3.1.

call KSPSolve

I'm using a MatShell and PCShell but I guess that doesn't matter?

That doesn't matter, diagonal scaling occurs at a higher level than the individual implementation.

dr. ir. Christiaan Klaij
CFD Researcher
Research & Development
E mailto:C.Klaij at marin.nl
T +31 317 49 33 44

2, Haagsteeg, P.O. Box 28, 6700 AA Wageningen, The Netherlands
T +31 317 49 39 11, F +31 317 49 32 45, I www.marin.nl

More information about the petsc-users mailing list