Update PETSc monitor code for changes in PETSc dev
Issue #665
resolved
Monitors have been disabled to keep DOLFIN compiling against PETSc dev. Need to be fixed.
Comments (7)
-
-
reporter @pefarrell Can you fix this issue?
-
reporter @wence Can you help us to understand why something so simple (print residual to stdout) requires so many lines of code?!
-
Not really sure. I think this is designed to be sort of internal to petsc and you just call Snessetfromoptions with the appropriate options set.
-
Garth: I've committed a fix to pefarrell/fix-petsc-monitors. It passes all regression tests (finally).
-
reporter - changed status to resolved
-
- removed milestone
Removing milestone: 1.7 (automated comment)
- Log in to comment
I think the problem is that
PETSC_VIEWER_STDOUT_(...)
does not increase the refcount of the returned viewer. So you should not callPetscObjectDereference
on the viewer you get back after creating thePetscViewerAndFormat
.