<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 14, 2013 at 4:20 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":1vr">   src/ts/examples/tutorials/ex28.c (though the comment is wrong, the example did run for me).<br>

<br>
   TSView()  to binary stores the ENTIRE TS state needed to run (yes including the function pointers provided by the user) and TSLoad() loads it back up ready to run again :-)<br>
<br>
   Barry<br>
<br>
Note 1) it is still only proof of concept, I don't do anything with user contexts etc etc.<br></div></blockquote><div><br></div><div style>Yeah, this would need the user to provide create routines that started from scratch. Having that is actually relevant to UQ, so it may be worth adding.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":1vr">
<br>
Note 2) it, course, doesn't save state inside SNES, KSP, PC, or Mat nor should it ever. Those will all get rebuilt when the next TSSolve() is called.</div></blockquote></div><br>Okay, it loads when I link with '-pie', but the binary file output from ex1 does not have the DM:</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">[0]PETSC ERROR: --------------------- Error Message ------------------------------------</div><div class="gmail_extra">[0]PETSC ERROR: Invalid argument!</div>
<div class="gmail_extra">[0]PETSC ERROR: Not DM next in file!</div><div class="gmail_extra">[0]PETSC ERROR: ------------------------------------------------------------------------</div><div class="gmail_extra">[0]PETSC ERROR: Petsc Development HG revision: unknown  HG Date: unknown</div>
<div class="gmail_extra">[0]PETSC ERROR: See docs/changes/index.html for recent updates.</div><div class="gmail_extra">[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.</div><div class="gmail_extra">[0]PETSC ERROR: See docs/index.html for manual pages.</div>
<div class="gmail_extra">[0]PETSC ERROR: ------------------------------------------------------------------------</div><div class="gmail_extra">[0]PETSC ERROR: ./ex28 on a mpich named batura by jed Thu Feb 14 16:37:57 2013</div>
<div class="gmail_extra">[0]PETSC ERROR: Libraries linked from /home/jed/petsc/mpich/lib</div><div class="gmail_extra">[0]PETSC ERROR: Configure run at Wed Feb 13 09:54:27 2013</div><div class="gmail_extra">[0]PETSC ERROR: Configure options --download-ams --download-blacs --download-chaco --download-generator --download-hypre --download-ml --download-spai --download-spooles --download-sundials --download-superlu --download-superlu_dist --download-triangle --with-blas-lapack=/usr --with-c2html --with-cholmod-dir=/usr --with-clique-dir=/home/jed/usr/clique-mpich --with-elemental-dir=/home/jed/usr/clique-mpich --with-exodusii-dir=/usr --with-hdf5-dir=/opt/mpich --with-lgrind --with-metis-dir=/home/jed/usr/clique-mpich --with-mpi-dir=/opt/mpich --with-netcdf-dir=/usr --with-openmp --with-parmetis-dir=/home/jed/usr/clique-mpich --with-pcbddc --with-pthreadclasses --with-shared-libraries --with-single-library=0 --with-sowing --with-threadcomm --with-umfpack-dir=/usr --with-x -PETSC_ARCH=mpich</div>
<div class="gmail_extra">[0]PETSC ERROR: ------------------------------------------------------------------------</div><div class="gmail_extra">[0]PETSC ERROR: DMLoad() line 2622 in /home/jed/petsc/src/dm/interface/dm.c</div>
<div class="gmail_extra">[0]PETSC ERROR: TSLoad() line 1206 in /home/jed/petsc/src/ts/interface/ts.c</div><div class="gmail_extra">[0]PETSC ERROR: main() line 28 in src/ts/examples/tutorials/ex28.c</div><div class="gmail_extra">
application called MPI_Abort(MPI_COMM_WORLD, 62) - process 0</div><div><br></div></div></div>