Dear Chucui,

The standard Triangulation class has a save function 
<https://www.dealii.org/9.0.0/doxygen/deal.II/classTriangulation.html#a5ae613e76606c08f919aa6e4bdf5f94a>,
 so the methodology shown in those examples can likely be applied exactly to 
the serial case.

Best,
Jean-Paul

> On 06 Nov 2018, at 16:20, [email protected] wrote:
> 
> Dear Jean-Paul,
> 
> Thank you for your reply! As the examples you set, and an answer I found:  
> See "Use for serialization" in 
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.dealii.org_developer_doxygen_deal.II_classparallel-5F1-5F1distributed-5F1-5F1SolutionTransfer.html&d=DwIBaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=88KR9zh1f_gaVgWHpZwwXXlaOCduKgZ1yzsuERztdmU&s=Q549G3WmW1DtS06Yq9GyH98gIg8Rl44Ezac7I1Fc1Tc&e=
>  
> <https://www.google.com/url?q=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__www.dealii.org_developer_doxygen_deal.II_classparallel-5F1-5F1distributed-5F1-5F1SolutionTransfer.html%26d%3DDwIBaQ%26c%3DNgd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4%26r%3D4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw%26m%3D88KR9zh1f_gaVgWHpZwwXXlaOCduKgZ1yzsuERztdmU%26s%3DQ549G3WmW1DtS06Yq9GyH98gIg8Rl44Ezac7I1Fc1Tc%26e%3D&sa=D&sntz=1&usg=AFQjCNEbrj_lDgRe49WUmf2nR_x54AG2Bg>
>  
> these functions such as  ' Triangulation::save()', 'Triangulation::load()', 
> void SolutionTransfer< dim, VectorType, DoFHandlerType 
> >::prepare_serialization       (       const VectorType &      in      )      
>  
>  void SolutionTransfer< dim, VectorType, DoFHandlerType >::deserialize        
> (       VectorType &    in      )
> are all used in the parallel examples.
> But my code is not use any class and headfile for parallel one. Shall I 
> rewrite my code into a parallel one? Thank you very much!
> 
> Best,
> Chucui   
> 
> 在 2018年11月5日星期一 UTC+8下午5:01:06,Jean-Paul Pelteret写道:
> Dear Chucui,
> 
> I don’t use this functionality myself, so I can only point you to the test 
> suite <https://github.com/dealii/dealii/tree/master/tests/serialization> 
> where its functionality is tested. Here 
> <https://github.com/dealii/dealii/blob/master/tests/mpi/p4est_save_01.cc> is 
> one example where a distributed triangulation is saved and loaded, and here 
> <https://github.com/dealii/dealii/blob/master/tests/mpi/p4est_save_04.cc> is 
> one where a distributed triangulation + solution is saved and loaded with a 
> different number of MPI processes.
> 
> Best,
> Jean-Paul
> 
> 
> 
> -- 
> The deal.II project is located at http://www.dealii.org/ 
> <http://www.dealii.org/>
> For mailing list/forum options, see 
> https://groups.google.com/d/forum/dealii?hl=en 
> <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] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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.

Reply via email to