[petsc-users] KSPMonitorSingularValue

Matthew Knepley knepley at gmail.com
Thu Oct 20 09:37:13 CDT 2011


On Thu, Oct 20, 2011 at 2:34 PM, Klaij, Christiaan <C.Klaij at marin.nl> wrote:

> I'm confused about how to use KSPMonitorSingularValue
> in my fortran code (not using the options database)
>
> By looking at ex30.c I have:
>
> call KSPMonitorSet(ksp,KSPMonitorSingularValue,PETSC_NULL,PETSC_NULL,ierr);
> call KSPSetComputeSingularValues(ksp,PETSC_TRUE,ierr)
>
> in the part where I initialize the KSP. But where to call
> KSPMonitorSingularValue? And how do I get "n" and "rnorm"?
>

You don't. The monitor routine is called by the solver. What exactly do you
want to do?

  Matt


> Chris
>
>
> dr. ir. Christiaan Klaij
> CFD Researcher
> Research & Development
> E mailto:C.Klaij at marin.nl
> T +31 317 49 33 44
>
> MARIN
> 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
>
>


-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111020/56974d75/attachment.htm>


More information about the petsc-users mailing list