<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Dec 22, 2016 at 8:02 AM, Mark Adams <span dir="ltr"><<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-m_-1277984261317971422gmail-"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-"><div><br></div><div><div>#PETSc Option Table entries:</div><div>-dm_view hdf5:res.h5<br></div><div>-snes_monitor_residual hdf5:res.h5::append<br></div></div><div><br></div></span><span class="gmail-"><div>ierr = DMViewFromOptions(ctx->dm,NULL<wbr>,"-dm_view");CHKERRQ(ierr);</div></span></div></div></div></blockquote><div><br></div></span><span class="gmail-"><div>1) You need this in the code. Its in all my examples.</div><div><br></div><div>2) Did you put it before the vec views? Otherwise, it need 'append'.</div></span></div></div></div></blockquote><div><br></div><div>The vec views are inside of SNES. I added this code before TSSolve and it did not change anything.</div><div><br></div><div>I do not see an example with snes_monitor_residual.</div></div></div></div></blockquote><div><br></div><div>Mark, this seems to work for me in SNES ex12:</div><div><br></div><div><div>master *$:/PETSc3/petsc/petsc-pylith$ MACOSX_DEPLOYMENT_TARGET=10.5 DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PETSC_DIR/arch-master-debug/lib PETSC_ARCH=arch-master-debug ./config/builder2.py check src/snes/examples/tutorials/ex12.c --testnum=39 --args="-dm_view hdf5:ex12.h5"</div><div>MACOSX_DEPLOYMENT_TARGET=10.5 DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PETSC_DIR/arch-master-debug/lib PETSC_ARCH=arch-master-debug ./config/builder2.py check src/snes/examples/tutorials/ex12.c --testnum=39 --args="-dm_view hdf5:ex12.h5"</div><div>Namespace(args=['-dm_view hdf5:ex12.h5'], files=['src/snes/examples/tutorials/ex12.c'], func=<function check at 0x1005cb050>, numProcs=None, regParams=None, replace=False, retain=False, testnum='39')</div><div>Running 1 tests</div><div>Test 37 requires packages ['exodusii', 'Broken']</div><div>Test 38 requires packages ['exodusii', 'Broken']</div><div>Building ['/PETSc3/petsc/petsc-pylith/src/snes/examples/tutorials/ex12.c']</div><div>Running #39: arch-master-debug/bin/mpiexec -host localhost -n 1 arch-master-debug/lib/ex12-obj/ex12 -run_type full -refinement_limit 0.015625 -interpolate 1 -petscspace_order 2 -pc_type gamg -ksp_rtolTest 51 requires packages ['pragmatic', 'Broken']</div><div>Test 83 requires packages ['p4est', 'Broken']</div><div>Test 84 requires packages ['p4est', 'Broken']</div><div>All tests pass</div><div>master *$:/PETSc3/petsc/petsc-pylith$ h5ls ex12.h5</div><div>h5ls ex12.h5</div><div>geometry                 Group</div><div>labels                   Group</div><div>topology                 Group</div><div>viz                      Group</div><div>master *$:/PETSc3/petsc/petsc-pylith$ MACOSX_DEPLOYMENT_TARGET=10.5 DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PETSC_DIR/arch-master-debug/lib PETSC_ARCH=arch-master-debug ./config/builder2.py check src/snes/examples/tutorials/ex12.c --testnum=39 --args="-dm_view hdf5:ex12.h5 -snes_monitor_residual hdf5:ex12.h5::append"</div><div>MACOSX_DEPLOYMENT_TARGET=10.5 DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PETSC_DIR/arch-master-debug/lib PETSC_ARCH=arch-master-debug ./config/builder2.py check src/snes/examples/tutorials/ex12.c --testnum=39 --args="-dm_view hdf5:ex12.h5 -snes_monitor_residual hdf5:ex12.h5::append"</div><div>Namespace(args=['-dm_view hdf5:ex12.h5 -snes_monitor_residual hdf5:ex12.h5::append'], files=['src/snes/examples/tutorials/ex12.c'], func=<function check at 0x1005cb050>, numProcs=None, regParams=None, replace=False, retain=False, testnum='39')</div><div>Running 1 tests</div><div>Test 37 requires packages ['exodusii', 'Broken']</div><div>Test 38 requires packages ['exodusii', 'Broken']</div><div>Building ['/PETSc3/petsc/petsc-pylith/src/snes/examples/tutorials/ex12.c']</div><div>Running #39: arch-master-debug/bin/mpiexec -host localhost -n 1 arch-master-debug/lib/ex12-obj/ex12 -run_type full -refinement_limit 0.015625 -interpolate 1 -petscspace_order 2 -pc_type gamg -ksp_rtolTest 51 requires packages ['pragmatic', 'Broken']</div><div>Test 83 requires packages ['p4est', 'Broken']</div><div>Test 84 requires packages ['p4est', 'Broken']</div><div>All tests pass</div><div>master *$:/PETSc3/petsc/petsc-pylith$ h5ls ex12.h5</div><div>h5ls ex12.h5</div><div>fields                   Group</div><div>geometry                 Group</div><div>labels                   Group</div><div>topology                 Group</div><div>vertex_fields            Group</div><div>viz                      Group</div><div>master *$:/PETSc3/petsc/petsc-pylith$ h5ls ex12.h5/vertex_fields</div><div>h5ls ex12.h5/vertex_fields</div><div>Vec_0x84000000_0_potential Dataset {41}</div></div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Thanks,</div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>