<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"> <div> I suggest the PETSc options database check the environmental variable PETSC_OPTIONS_FINAL and have these values added to the options database last (though they shouldn't overwrite values set in the code.)</div><div><br></div><div> I tried</div><div><br></div><div><div>$ make -f ./gmakefile test globsearch="snes_tutorials-ex69_p2p1" EXTRA_OPTIONS="-dm_refine 5 -dm_view hdf5:$PETSC_DIR/sol.h5 -snes_view_solution hdf5:$PETSC_DIR/sol.h5::append -exact_vec_view hdf5:$PETSC_DIR/sol.h5::append -m 2 -n 2 -B 1"</div><div><br></div><div>As suggested in guide_to_stokes.md and got back </div><div><br></div><div>Using MAKEFLAGS: -- EXTRA_OPTIONS=-dm_refine 5 -dm_view hdf5:/Users/barrysmith/Src/petsc/sol.h5 -snes_view_solution hdf5:/Users/barrysmith/Src/petsc/sol.h5::append -exact_vec_view hdf5:/Users/barrysmith/Src/petsc/sol.h5::append -m 2 -n 2 -B 1 globsearch=snes_tutorials-ex69_p2p1</div><div> CC arch-main/tests/sys/classes/draw/tests/ex1.o</div><div> CLINKER arch-main/tests/sys/classes/draw/tests/ex1</div><div> TEST arch-main/tests/counts/sys_classes_draw_tests-ex1_1.counts</div><div> ok sys_classes_draw_tests-ex1_1</div><div>not ok diff-sys_classes_draw_tests-ex1_1 # Error code: 1</div><div>#<span class="Apple-tab-span" style="white-space:pre"> </span>0a1,10</div><div>#<span class="Apple-tab-span" style="white-space:pre"> </span>> WARNING! There are options you set that were not used!</div><div>#<span class="Apple-tab-span" style="white-space:pre"> </span>> WARNING! could be spelling mistake, etc!</div><div>#<span class="Apple-tab-span" style="white-space:pre"> </span>> There are 7 unused database options. They are:</div><div>#<span class="Apple-tab-span" style="white-space:pre"> </span>> Option left: name:-B value: 1 source: command line</div><div>#<span class="Apple-tab-span" style="white-space:pre"> </span>> Option left: name:-dm_refine value: 5 source: command line</div><div>#<span class="Apple-tab-span" style="white-space:pre"> </span>> Option left: name:-dm_view value: hdf5:/Users/barrysmith/Src/petsc/sol.h5 source: command line</div><div>#<span class="Apple-tab-span" style="white-space:pre"> </span>> Option left: name:-exact_vec_view value: hdf5:/Users/barrysmith/Src/petsc/sol.h5::append source: command line</div><div>#<span class="Apple-tab-span" style="white-space:pre"> </span>> Option left: name:-m value: 2 source: command line</div><div>#<span class="Apple-tab-span" style="white-space:pre"> </span>> Option left: name:-n value: 2 source: command line</div><div>#<span class="Apple-tab-span" style="white-space:pre"> </span>> Option left: name:-snes_view_solution value: hdf5:/Users/barrysmith/Src/petsc/sol.h5::append source: command line</div><div> CC arch-main/tests/sys/classes/draw/tests/ex10.o</div><div> CLINKER arch-main/tests/sys/classes/draw/tests/ex10</div><div> TEST arch-main/tests/counts/sys_classes_draw_tests-ex10_1.counts</div><div>^Cnot ok sys_classes_draw_tests-ex10_1 # Error code: 1</div><div> ok sys_classes_draw_tests-ex10_1 # SKIP Command failed so no diff</div><div><br></div><div>So I expect there is something wrong with the tutorials on the website.</div><div><br></div><div>I am mystified how make test can be used to print nice output to the screen since the tests save the output to a file and do a diff. So I would like to know how Matt uses make test in his workflow.</div><div><br></div><div> Barry</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><blockquote type="cite"><div>On Aug 7, 2025, at 9:23 AM, Matthew Knepley <knepley@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr"><div>We currently have two kinds of options in the test system. Options that come from the "args" line in the TEST section of the example source, which we will call $args, and options that come from the EXTRA_OPTIONS env var when the test is executed, which we will call $extra_args.</div><div><br></div><div>Right now, in petsc_harness.sh:109, we feed the example executable the arguments</div><div><br></div><div> $extra_args $args</div><div><br></div><div>This allows us to do things like declare EXTRA_OPTIONS="-fp_trap" for linux-pkgs-dbg, and then allow it to be turned off for certain tests with -fp_trap 0 in the argos line.</div><div><br></div><div>This setup, however, does not allow us to override any options given in $args while running a test, which seems very restrictive. Should we create a third class of options?</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>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><br></div><div><a href="https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!es96ebvWwNhZgW9QAbhKl87uWMsmggCaWnv60yjXuLOqvK4co4KiyvhNTffA2KhyR42saIqyrZ93SWsl1pKX$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</div></blockquote></div><br></div></body></html>