Rajat, On Friday, July 8, 2016 at 11:57:37 AM UTC-4, RAJAT ARORA wrote:
> Here is the documentation > <https://www.dealii.org/8.4.1/doxygen/deal.II/classTriangulation.html> where > in the serializing section it says that serializing stores vertices and its > location. > I am confused if it does store vertex locations now. > This part of the library is kind of confusing. You need to realize that the Triangulation can be serialize to a file using for example boost_archive and that a parallel::Triangulation can also be saved. The save function basically only store the refinement flag so you need to start from the same coarse mesh every time. The serialization of the Triangulation saves the correct position of the vertices but it doesn't save the underlying p4est object so you cannot deserialize it to create a parallel::Triangulation. My work flow is the following: To save the data: 1) serialize the parallel::Triangulation of the coarse mesh. 2) do some refinements and then, use save on the parallel::Triangulation To load the data 1) deserialize the coarse mesh using a Triangulation (NOT a parallel::Triangulation) 2) use copy_triangulation to copy the Triangulation to a parallel::Triangulation 3) use load on parallel::Triangulation to get the mesh correctly refined. Here is the load function in my code https://github.com/ORNL-CEES/Cap/blob/master/cpp/source/deal.II/supercapacitor.templates.h#L415 > One way could be to store the total displacement as a solution vector, and > then deserialize() it and add to > the mesh coordinates. Is there any other way ? > > That's another way to do it. Best, Bruno -- 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.
