[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -ksp_monitor



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@tu-harburg.de <abdul-rahman@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