<div dir="ltr">Barry --<div><br></div><div>Works great for me in next and master.  Having value "draw" is perfectly natural, as is default behavior.</div><div><br></div><div>Ed</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 25, 2015 at 4:54 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
  Ed,<br>
<br>
   I have fixed the error in the branch barry/update-monitors now in next for testing.<br>
<br>
   There is one API change associated with the fix. To graphically visualize the solution one now needs<br>
<br>
-ksp/snes/ts_monitor_solution draw<br>
<br>
the default behavior is now to ASCII print the solution to the screen.<br>
<br>
   Barry<br>
<br>
Further work is needed to unify and simplified the various monitor options.<br>
<div class="HOEnZb"><div class="h5"><br>
> On Nov 22, 2015, at 8:55 PM, Ed Bueler <<a href="mailto:elbueler@alaska.edu">elbueler@alaska.edu</a>> wrote:<br>
><br>
> Barry --<br>
><br>
> 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.<br>
><br>
> Ed<br>
><br>
><br>
> On Sun, Nov 22, 2015 at 5:51 PM, Barry Smith <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> wrote:<br>
><br>
>    I totally botched that update; looks like I broke a lot of the command line monitor options in master.<br>
><br>
>    Fixing it properly will take some work but also enhance the command line monitor and reduce the code a bit.<br>
><br>
>    Thanks for letting us know.<br>
><br>
><br>
>    Barry<br>
><br>
> > On Nov 22, 2015, at 1:40 PM, Ed Bueler <<a href="mailto:elbueler@alaska.edu">elbueler@alaska.edu</a>> wrote:<br>
> ><br>
> > Dear PETSc --<br>
> ><br>
> > 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 <a href="http://www.mcs.anl.gov/petsc/documentation/changes/dev.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/documentation/changes/dev.html</a>, namely<br>
> ><br>
> > "SNESSetMonitor(SNESMonitorXXX, calls now require passing a viewer as the final argument, you can no longer pass a NULL)"<br>
> ><br>
> > but the error message below is not informative enough to tell me what to do at the command line.<br>
> ><br>
> > Note that my X11 windows do work, as other options successfully give line graphs etc.<br>
> ><br>
> > Do I need<br>
> ><br>
> >    -snes_monitor_solution Z<br>
> ><br>
> > with some value for Z?  If so, where are the possibilities documented?<br>
> ><br>
> > Thanks!<br>
> ><br>
> > Ed<br>
> ><br>
> ><br>
> ><br>
> > $ ./ex5 -snes_monitor_solution<br>
> > [0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------<br>
> > [0]PETSC ERROR: Null argument, when expecting valid pointer<br>
> > [0]PETSC ERROR: Null Object: Parameter # 4<br>
> > [0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.<br>
> > [0]PETSC ERROR: Petsc Development GIT revision: v3.6.2-1635-g5e95a8a  GIT Date: 2015-11-21 16:14:08 -0600<br>
> > [0]PETSC ERROR: ./ex5 on a linux-c-dbg named bueler-leopard by ed Sun Nov 22 10:31:33 2015<br>
> > [0]PETSC ERROR: Configure options --download-mpich --download-triangle --with-debugging=1<br>
> > [0]PETSC ERROR: #1 SNESMonitorSolution() line 33 in /home/ed/petsc/src/snes/interface/snesut.c<br>
> > [0]PETSC ERROR: #2 SNESMonitor() line 3383 in /home/ed/petsc/src/snes/interface/snes.c<br>
> > [0]PETSC ERROR: #3 SNESSolve_NEWTONLS() line 191 in /home/ed/petsc/src/snes/impls/ls/ls.c<br>
> > [0]PETSC ERROR: #4 SNESSolve() line 3984 in /home/ed/petsc/src/snes/interface/snes.c<br>
> > [0]PETSC ERROR: #5 main() line 171 in /home/ed/petsc/src/snes/examples/tutorials/ex5.c<br>
> > [0]PETSC ERROR: PETSc Option Table entries:<br>
> > [0]PETSC ERROR: -snes_monitor_solution<br>
> > [0]PETSC ERROR: ----------------End of Error Message -------send entire error message to petsc-maint@mcs.anl.gov----------<br>
> > application called MPI_Abort(MPI_COMM_WORLD, 85) - process 0<br>
> > [unset]: aborting job:<br>
> > application called MPI_Abort(MPI_COMM_WORLD, 85) - process 0<br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Ed Bueler<br>
> > Dept of Math and Stat and Geophysical Institute<br>
> > University of Alaska Fairbanks<br>
> > Fairbanks, AK 99775-6660<br>
> > 301C Chapman and 410D Elvey<br>
> > <a href="tel:907%20474-7693" value="+19074747693">907 474-7693</a> and <a href="tel:907%20474-7199" value="+19074747199">907 474-7199</a>  (fax <a href="tel:907%20474-5394" value="+19074745394">907 474-5394</a>)<br>
><br>
><br>
><br>
><br>
> --<br>
> Ed Bueler<br>
> Dept of Math and Stat and Geophysical Institute<br>
> University of Alaska Fairbanks<br>
> Fairbanks, AK 99775-6660<br>
> 301C Chapman and 410D Elvey<br>
> 907 474-7693 and 907 474-7199  (fax 907 474-5394)<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Ed Bueler<br>Dept of Math and Stat and Geophysical Institute<br>University of Alaska Fairbanks<br>Fairbanks, AK 99775-6660<br>301C Chapman and 410D Elvey<br>907 474-7693 and 907 474-7199  (fax 907 474-5394)</div>
</div>