[petsc-users] master branch option "-snes_monitor_solution"

Ed Bueler elbueler at alaska.edu
Fri Nov 27 14:24:12 CST 2015


Barry --

Works great for me in next and master.  Having value "draw" is perfectly
natural, as is default behavior.

Ed


On Wed, Nov 25, 2015 at 4:54 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
>   Ed,
>
>    I have fixed the error in the branch barry/update-monitors now in next
> for testing.
>
>    There is one API change associated with the fix. To graphically
> visualize the solution one now needs
>
> -ksp/snes/ts_monitor_solution draw
>
> the default behavior is now to ASCII print the solution to the screen.
>
>    Barry
>
> Further work is needed to unify and simplified the various monitor options.
>
> > On Nov 22, 2015, at 8:55 PM, Ed Bueler <elbueler at alaska.edu> wrote:
> >
> > Barry --
> >
> > That is reassuring, actually.  That is, knowing that occasionally ya'll
> botch something, and that the problem is not entirely on this leaf of the
> internets.
> >
> > Ed
> >
> >
> > On Sun, Nov 22, 2015 at 5:51 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> >
> >    I totally botched that update; looks like I broke a lot of the
> command line monitor options in master.
> >
> >    Fixing it properly will take some work but also enhance the command
> line monitor and reduce the code a bit.
> >
> >    Thanks for letting us know.
> >
> >
> >    Barry
> >
> > > On Nov 22, 2015, at 1:40 PM, Ed Bueler <elbueler at alaska.edu> wrote:
> > >
> > > Dear PETSc --
> > >
> > > When I use option -snes_monitor_solution in master branch I get the
> error below.  I have a sense that this is related to the change listed at
> http://www.mcs.anl.gov/petsc/documentation/changes/dev.html, namely
> > >
> > > "SNESSetMonitor(SNESMonitorXXX, calls now require passing a viewer as
> the final argument, you can no longer pass a NULL)"
> > >
> > > but the error message below is not informative enough to tell me what
> to do at the command line.
> > >
> > > Note that my X11 windows do work, as other options successfully give
> line graphs etc.
> > >
> > > Do I need
> > >
> > >    -snes_monitor_solution Z
> > >
> > > with some value for Z?  If so, where are the possibilities documented?
> > >
> > > Thanks!
> > >
> > > Ed
> > >
> > >
> > >
> > > $ ./ex5 -snes_monitor_solution
> > > [0]PETSC ERROR: --------------------- Error Message
> --------------------------------------------------------------
> > > [0]PETSC ERROR: Null argument, when expecting valid pointer
> > > [0]PETSC ERROR: Null Object: Parameter # 4
> > > [0]PETSC ERROR: See
> http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
> > > [0]PETSC ERROR: Petsc Development GIT revision: v3.6.2-1635-g5e95a8a
> GIT Date: 2015-11-21 16:14:08 -0600
> > > [0]PETSC ERROR: ./ex5 on a linux-c-dbg named bueler-leopard by ed Sun
> Nov 22 10:31:33 2015
> > > [0]PETSC ERROR: Configure options --download-mpich --download-triangle
> --with-debugging=1
> > > [0]PETSC ERROR: #1 SNESMonitorSolution() line 33 in
> /home/ed/petsc/src/snes/interface/snesut.c
> > > [0]PETSC ERROR: #2 SNESMonitor() line 3383 in
> /home/ed/petsc/src/snes/interface/snes.c
> > > [0]PETSC ERROR: #3 SNESSolve_NEWTONLS() line 191 in
> /home/ed/petsc/src/snes/impls/ls/ls.c
> > > [0]PETSC ERROR: #4 SNESSolve() line 3984 in
> /home/ed/petsc/src/snes/interface/snes.c
> > > [0]PETSC ERROR: #5 main() line 171 in
> /home/ed/petsc/src/snes/examples/tutorials/ex5.c
> > > [0]PETSC ERROR: PETSc Option Table entries:
> > > [0]PETSC ERROR: -snes_monitor_solution
> > > [0]PETSC ERROR: ----------------End of Error Message -------send
> entire error message to petsc-maint at mcs.anl.gov----------
> > > application called MPI_Abort(MPI_COMM_WORLD, 85) - process 0
> > > [unset]: aborting job:
> > > application called MPI_Abort(MPI_COMM_WORLD, 85) - process 0
> > >
> > >
> > >
> > > --
> > > Ed Bueler
> > > Dept of Math and Stat and Geophysical Institute
> > > University of Alaska Fairbanks
> > > Fairbanks, AK 99775-6660
> > > 301C Chapman and 410D Elvey
> > > 907 474-7693 and 907 474-7199  (fax 907 474-5394)
> >
> >
> >
> >
> > --
> > Ed Bueler
> > Dept of Math and Stat and Geophysical Institute
> > University of Alaska Fairbanks
> > Fairbanks, AK 99775-6660
> > 301C Chapman and 410D Elvey
> > 907 474-7693 and 907 474-7199  (fax 907 474-5394)
>
>


-- 
Ed Bueler
Dept of Math and Stat and Geophysical Institute
University of Alaska Fairbanks
Fairbanks, AK 99775-6660
301C Chapman and 410D Elvey
907 474-7693 and 907 474-7199  (fax 907 474-5394)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151127/65141139/attachment.html>


More information about the petsc-users mailing list