-ksp_monitor
Matthew Knepley
knepley at gmail.com
Thu Mar 16 12:42:45 CST 2006
You can use -ksp_truemonitor for the true residual. I
don't think we have something to output every N iterations,
but adding a custom monitor is not that hard. You use
KSPSetMonitor():
http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/KSP/KSPSetMonitor.html
Matt
On 3/16/06, abdul-rahman at tu-harburg.de <abdul-rahman at tu-harburg.de> wrote:
>
> Hi all,
>
> Is there a simple way to control the output of residual monitor ? i.e.,
> instead of every iteration, can I output every N iterations to screen ?
>
> As for the true residuals, can I store them? I know how to get the
> preconditioned residuals. Seems to me the true residuals are in the vt2
> temp variable I saw in KSPInitialResidual.
>
> Many thanks,
>
> Razi
>
>
--
"Failure has a thousand explanations. Success doesn't need one" -- Sir Alec
Guiness
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20060316/a0c18c8f/attachment-0002.htm>
More information about the petsc-users
mailing list