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 <[email protected]> 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 [email protected] > 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)
