On Thu, Feb 14, 2013 at 4:20 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> src/ts/examples/tutorials/ex28.c (though the comment is wrong, the > example did run for me). > > 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 :-) > > Barry > > Note 1) it is still only proof of concept, I don't do anything with user > contexts etc etc. > 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. > > 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. > Okay, it loads when I link with '-pie', but the binary file output from ex1 does not have the DM: [0]PETSC ERROR: --------------------- Error Message ------------------------------------ [0]PETSC ERROR: Invalid argument! [0]PETSC ERROR: Not DM next in file! [0]PETSC ERROR: ------------------------------------------------------------------------ [0]PETSC ERROR: Petsc Development HG revision: unknown HG Date: unknown [0]PETSC ERROR: See docs/changes/index.html for recent updates. [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting. [0]PETSC ERROR: See docs/index.html for manual pages. [0]PETSC ERROR: ------------------------------------------------------------------------ [0]PETSC ERROR: ./ex28 on a mpich named batura by jed Thu Feb 14 16:37:57 2013 [0]PETSC ERROR: Libraries linked from /home/jed/petsc/mpich/lib [0]PETSC ERROR: Configure run at Wed Feb 13 09:54:27 2013 [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 [0]PETSC ERROR: ------------------------------------------------------------------------ [0]PETSC ERROR: DMLoad() line 2622 in /home/jed/petsc/src/dm/interface/dm.c [0]PETSC ERROR: TSLoad() line 1206 in /home/jed/petsc/src/ts/interface/ts.c [0]PETSC ERROR: main() line 28 in src/ts/examples/tutorials/ex28.c application called MPI_Abort(MPI_COMM_WORLD, 62) - process 0 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130214/6b6e9958/attachment.html>
