Dear Anup,
Probably the simplest way to find examples of the save and load
functionality is to look through deal.II's unit tests
<https://github.com/dealii/dealii/blob/master/tests>. Here are a list of
tests that are related to the save functionality
$ grep --include=\*.{h,cpp,cc} -rnw '.' -e "save"
> ./arpack/parpack_advection_diffusion_petsc.cc:58:const unsigned int dim =
> 2;//run in 2d to save time
> ./arpack/parpack_advection_diffusion_trilinos.cc:57:const unsigned int dim
> = 2;//run in 2d to save time
> ./arpack/step-36_parpack.cc:61:const unsigned int dim = 2;//run in 2d to
> save time
> ./arpack/step-36_parpack_trilinos.cc:60:const unsigned int dim = 2;//run
> in 2d to save time
> ./bits/refine_and_coarsen_for_active_cell_index_05.cc:112: // save data
> to archive
> ./bits/refine_and_coarsen_for_active_cell_index_05.cc:141: // save data
> to archive
> ./distributed_grids/2d_refinement_10.cc:279: // save refine flag
> ./distributed_grids/3d_refinement_12.cc:279: // save refine flag
> ./grid/user_data_01.cc:184: // Check if save and load work
> ./grid/user_data_01.cc:263: // Check if save and load work
> ./hp/renumber_block_wise_01.cc:68: // do component-wise and save the
> ./hp/renumber_block_wise_01a.cc:67: // do component-wise and save the
> ./hp/renumber_block_wise_02.cc:78: // do component-wise and save the
> ./lac/la_vector_output.cc:52: // save data to archive
> ./mpi/p4est_save_01.cc:18:// save and load a triangulation
> ./mpi/p4est_save_01.cc:70: tr.save(filename.c_str());
> ./mpi/p4est_save_02.cc:18:// save and load a triangulation with one
> solution vector
> ./mpi/p4est_save_02.cc:98: tr.save(filename.c_str());
> ./mpi/p4est_save_03.cc:18:// save and load a triangulation with two
> solution vectors
> ./mpi/p4est_save_03.cc:107: tr.save (filename.c_str());
> ./mpi/p4est_save_04.cc:18:// save and load a triangulation with a
> different number of cpus
> ./mpi/p4est_save_04.cc:99: tr.save ("file");
> ./serialization/serialization.h:48: // save data to archive
> ./sharedtria/tria_load_01.cc:17:// save a tria mesh and load it
> ./sharedtria/tria_load_01.cc:46: tr1.save(oa, 0);
> ./slepc/step-36_parallel.cc:35:const unsigned int dim = 2;//run in 2d to
> save time
and its the test in "mpi/p4est_save_03.cc
<https://github.com/dealii/dealii/blob/master/tests/mpi/p4est_save_03.cc>"
that seems to demonstrate the capabilities that you're looking for.
Regards,
Jean-Paul
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.