[petsc-users] Query regarding old PETSC version

Matthew Knepley knepley at gmail.com
Wed Aug 16 10:05:24 CDT 2017

On Wed, Aug 16, 2017 at 10:01 AM, Rachit Prasad <rachitp at vt.edu> wrote:

> Hi,
> Due to legacy issues, I am working with tversion 2.3.2 of PETSc in
> FORTRAN. I want to monitor the true residual and hence I tried to use the
> function KSPTrueResididual(). However, I am unable to understand what kind
> of pointer is the last input parameter, "*dummy" supposed to be. I could
> not find an example on the website since this is an older implementation.
> Any insight on how to proceed further will be greatly helpful.

That is a very long time ago, but I think you can use PETSC_NULL_OBJECT (if
it exists). Also
-ksp_monitor_true_residual may work.



> Regards,
> Rachit

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/20170816/e7b53513/attachment.html>

More information about the petsc-users mailing list