<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>https://gitlab.com/petsc/petsc/-/commit/d7dd068b66a8daa3a37c9e1556b34bd8def54922</div><div><br></div><div>On Thu, Jun 24, 2021, at 11:40 AM, Mark Adams wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div>How does one view a commit on gitlab?<br></div><div>I would like to look at d7dd068b66a8daa3a37c9e1556b34bd8def54922<br></div></div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Thu, Jun 24, 2021 at 9:58 AM Mark Adams <<a href="mailto:mfadams@lbl.gov">mfadams@lbl.gov</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div dir="ltr"><div>OK, I tried again and deleted the arch directory every time:<br></div><div><br></div><div><div>(base) 09:56 (84933e400a...)|BISECTING ~/Codes/petsc2$ git bisect good<br></div><div>d7dd068b66a8daa3a37c9e1556b34bd8def54922 is the first bad commit<br></div><div>commit d7dd068b66a8daa3a37c9e1556b34bd8def54922<br></div><div>Author: Vaclav Hapla <<a href="mailto:vaclav.hapla@erdw.ethz.ch" target="_blank">vaclav.hapla@erdw.ethz.ch</a>><br></div><div>Date:   Wed Apr 14 21:22:37 2021 +0200<br></div><div><br></div><div>    HDF5: Improve timestepping.<br></div><div><br></div><div>    * add PetscViewerHDF5{Push,Pop,Is}Timestepping to control timestepping mode<br></div><div>    * write timestepping attribute for datasets and check it on reading<br></div><div>    * fail gracefully if trying to read non-timestepped dataset in timestepping mode and vice-versa (fix #425)<br></div><div>    * rewrite src/vec/vec/tutorials/ex19.c to improve coverage for timestepping testing<br></div><div><br></div><div> doc/documentation/changes/dev.rst         |  19 ++-<br></div><div> include/petsc/private/viewerhdf5impl.h    |   2 +<br></div><div> include/petscviewerhdf5.h                 |   4 +<br></div><div> src/dm/impls/da/gr2.c                     |  21 ++--<br></div><div> src/dm/impls/plex/plexhdf5.c              |  25 +++-<br></div><div> src/sys/classes/viewer/impls/hdf5/hdf5v.c | 124 ++++++++++++++++++--<br></div><div> src/vec/is/is/impls/general/general.c     |  10 +-<br></div><div> src/vec/is/utils/hdf5io.c                 |  45 +++++---<br></div><div> src/vec/vec/impls/mpi/pdvec.c             |  14 ++-<br></div><div> src/vec/vec/tutorials/ex19.c              | 186 +++++++++++++++++-------------<br></div><div> src/vec/vec/tutorials/output/ex19_2.out   |   0<br></div><div> src/vec/vec/tutorials/output/ex19_3.out   |   0<br></div><div> src/vec/vec/tutorials/output/ex19_4.out   |   0<br></div><div> 13 files changed, 320 insertions(+), 130 deletions(-)<br></div><div> delete mode 100644 src/vec/vec/tutorials/output/ex19_2.out<br></div><div> delete mode 100644 src/vec/vec/tutorials/output/ex19_3.out<br></div><div> delete mode 100644 src/vec/vec/tutorials/output/ex19_4.out<br></div></div></div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Thu, Jun 24, 2021 at 7:04 AM Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div dir="ltr"><div dir="ltr">On Thu, Jun 24, 2021 at 7:00 AM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br></div><div class="qt-gmail_quote"><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div dir="ltr"><div>OK, this is what I get with bisect:<br></div><div><br></div><div><div>(base) 06:54 (c3b2925bfb...)|BISECTING ~/Codes/petsc2$ git bisect good<br></div><div>The merge base c3b2925bfbe1c0a0b3a69c9a76295d0747e33d47 is bad.<br></div><div>This means the bug has been fixed between c3b2925bfbe1c0a0b3a69c9a76295d0747e33d47 and [09da24df01e50defd94bc4f7396f866a808ecea5 c3b2925bfbe1c0a0b3a69c9a76295d0747e33d47].<br></div></div><div><br></div><div><div>(base) 06:56 (v3.15.1) ~/Codes/petsc2$ git checkout c3b2925bfbe1c0a0b3a69c9a76295d0747e33d47<br></div><div>Previous HEAD position was 09da24df01 Increase patchlevel to 3.15.1<br></div><div>HEAD is now at c3b2925bfb Merge branch 'knepley-main-patch-78504' into 'release'<br></div><div>(base) 06:56 (c3b2925bfb...) ~/Codes/petsc2$<br></div></div></div></blockquote><div><br></div><div>I do not understand. Neither of those commits do anything.<br></div><div><br></div><div>   Matt<br></div><div> <br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Wed, Jun 23, 2021 at 11:14 PM Junchao Zhang <<a href="mailto:junchao.zhang@gmail.com" target="_blank">junchao.zhang@gmail.com</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div dir="ltr"><div>Mark,<br></div><div>  I am not sure what your problem is.  If it is a regression, can you bisect it?<br></div><div><div><div dir="ltr"><div dir="ltr">--Junchao Zhang<br></div></div></div><div><br></div></div></div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Wed, Jun 23, 2021 at 4:04 PM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div dir="ltr">I also tried commenting out the second VecView, so there is just one step in the file, and the .h5 file is only 8 bytes smaller and the .xmf file goes from 5373  bytes to 3090 bytes.<br></div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Wed, Jun 23, 2021 at 4:01 PM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div dir="ltr"><div>It is not a device issue but it is a regression.<br></div><div><br></div><div>Landau ex1 is tiny and just calls VecView before and after the TSsolve, which is one time step. If you add "<b><span class="colour" style="color:#ff0000;">-dm_view hdf5:f.h5 -vec_view hdf5:f.h5::append -dm_landau_Ez 10.</span></b>" to landau/ex1 (see below), you get an h5 file with two time steps, as it should be. <br></div><div>This is a huge electric field, Ez=10, which makes the electron distribution (u_e) get visibly pulled off center. <br></div><div>In Visit, both time steps have identical data that is clearly after the solve and not the initial condition (see attached). <br></div><div><br></div><div>I ran this again with <span style="color:#9900ff;">-ex1_ts_max_steps 0 </span>and get the expected result of two steps/frames with the symmetric initial condition in both. THis is correct behavior.<br></div><div><br></div><div>Any ideas?<br></div><div>Thanks<br></div><div><span class="colour" style="color:rgb(0, 255, 255);"></span><br></div><div><br></div><div><div>diff --git a/src/ts/utils/dmplexlandau/tutorials/ex1.c b/src/ts/utils/dmplexlandau/tutorials/ex1.c<br></div><div>index 9e4c8f1b61..31dfda2fad 100644<br></div><div>--- a/src/ts/utils/dmplexlandau/tutorials/ex1.c<br></div><div>+++ b/src/ts/utils/dmplexlandau/tutorials/ex1.c<br></div><div>@@ -66,6 +66,6 @@ int main(int argc, char **argv)<br></div><div>   test:<br></div><div>     suffix: 0<br></div><div>     requires: p4est !complex<br></div><div>-    args: -petscspace_degree 3 -petscspace_poly_tensor 1 -dm_landau_type p4est -dm_landau_ion_masses 2,4 -dm_landau_ion_charges 1,18 -dm_landau_thermal_temps 5,5,.5 -dm_landau_n 1.00018,1,1e-5 -dm_landau_n_0 1e20 -ex1_ts_monitor -ex1_snes_rtol 1.e-14 -ex1_snes_stol 1.e-14 -ex1_snes_monitor -ex1_snes_converged_reason -ex1_ts_type arkimex -ex1_ts_arkimex_type 1bee -ex1_ts_max_snes_failures -1 -ex1_ts_rtol 1e-1 -ex1_ts_dt 1.e-1 -ex1_ts_max_time 1 -ex1_ts_adapt_clip .5,1.25 -ex1_ts_adapt_scale_solve_failed 0.75 -ex1_ts_adapt_time_step_increase_delay 5 -ex1_ts_max_steps 1 -ex1_pc_type lu -ex1_ksp_type preonly -dm_landau_amr_levels_max 7 -dm_landau_domain_radius 5 -dm_landau_amr_re_levels 0 -dm_landau_re_radius 1 -dm_landau_amr_z_refine1 1 -dm_landau_amr_z_refine2 0 -dm_landau_amr_post_refine 0 -dm_landau_z_radius1 .1 -dm_landau_z_radius2 .1 -dm_refine 1 -dm_landau_gpu_assembly false<br></div><div>+    args: -petscspace_degree 3 -petscspace_poly_tensor 1 -dm_landau_type p4est -dm_landau_ion_masses 2,4 -dm_landau_ion_charges 1,18 -dm_landau_thermal_temps 5,5,.5 -dm_landau_n 1.00018,1,1e-5 -dm_landau_n_0 1e20 -ex1_ts_monitor -ex1_snes_rtol 1.e-14 -ex1_snes_stol 1.e-14 -ex1_snes_monitor -ex1_snes_converged_reason -ex1_ts_type arkimex -ex1_ts_arkimex_type 1bee -ex1_ts_max_snes_failures -1 -ex1_ts_rtol 1e-1 -ex1_ts_dt 1.e-1 -ex1_ts_max_time 1 -ex1_ts_adapt_clip .5,1.25 -ex1_ts_adapt_scale_solve_failed 0.75 -ex1_ts_adapt_time_step_increase_delay 5<span class="colour" style="color:rgb(0, 255, 255);"> </span><span class="colour" style="color:#9900ff;">-ex1_ts_max_steps 1</span><span class="colour" style="color:rgb(0, 255, 255);"> </span>-ex1_pc_type lu -ex1_ksp_type preonly -dm_landau_amr_levels_max 7 -dm_landau_domain_radius 5 -dm_landau_amr_re_levels 0 -dm_landau_re_radius 1 -dm_landau_amr_z_refine1 1 -dm_landau_amr_z_refine2 0 -dm_landau_amr_post_refine 0 -dm_landau_z_radius1 .1 -dm_landau_z_radius2 .1 -dm_refine 1 -dm_landau_gpu_assembly false <b><span class="colour" style="color:#ff0000;">-dm_view hdf5:f.h5 -vec_view hdf5:f.h5::append -dm_landau_Ez 10.</span></b><br></div><div><br></div><div> TEST*/<br></div></div></div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Wed, Jun 23, 2021 at 1:38 PM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div dir="ltr"><div>Landau ex1 should work. I will test.<br></div></div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Wed, Jun 23, 2021 at 10:47 AM Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div dir="ltr"><div dir="ltr">On Wed, Jun 23, 2021 at 10:44 AM Junchao Zhang <<a href="mailto:junchao.zhang@gmail.com" target="_blank">junchao.zhang@gmail.com</a>> wrote:<br></div><div class="qt-gmail_quote"><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div dir="ltr">Use VecGetArrayRead/Write() to get up-to-date host pointers to the vector array.<br></div></blockquote><div><br></div><div>I think Mark is saying that those are not working. We do call VecGetArrayRead() in the HDF5 code.<br></div><div><br></div><div>Mark, it seem like a small broken code is necessary.<br></div><div><br></div><div>  Thanks,<br></div><div><br></div><div>    Matt<br></div><div> <br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div dir="ltr"><div><div><div dir="ltr"><div dir="ltr">--Junchao Zhang<br></div></div></div><div><br></div></div></div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Wed, Jun 23, 2021 at 9:15 AM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div dir="ltr"><div>First, there seem to be two pages for VecGetArrayAndMemType (one has a pointer to the other).<br></div><div><br></div><div>So I need to get a CPU array for HDF5 viewing. Totally broken for devices.<br></div><div><br></div><div>I don't find a VecGetArrayCpu[HOST] that does the right thing. <br></div><div><br></div><div>Perhaps have VecGetArrayAndMemType return a valid CPU pointer when "mtype==NULL"?<br></div><div><br></div><div>Mark<br></div></div></blockquote></div></blockquote></div><div><br></div><div><br></div><div>-- <br></div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><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></div><div>-- Norbert Wiener<br></div></div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div></blockquote></div></blockquote></div></blockquote></div></blockquote></div></blockquote></div></blockquote></div><div><br></div><div><br></div><div>-- <br></div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><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></div><div>-- Norbert Wiener<br></div></div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div></blockquote></div></blockquote></div></blockquote></body></html>