[petsc-users] KSPBuildResidual in ex42.c
Jed Brown
jedbrown at mcs.anl.gov
Tue May 22 06:44:39 CDT 2012
On Tue, May 22, 2012 at 6:10 AM, Klaij, Christiaan <C.Klaij at marin.nl> wrote:
> In src/ksp/ksp/examples/tutorials/ex42.c.html the Stokes system
> is solved and KSPBuildResidual is used to compute the residuals
> for the velocity components and pressure individually. Are these
> the preconditioned residuals or the true residuals?
The true residual.
> And how to
> get both?
>
Precondition it.
Note that if you only want norms, GMRES will compute one (preconditioned by
default).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120522/d639206b/attachment.html>
More information about the petsc-users
mailing list