Hi Bruno,

The particles do indeed have a serialize function, but it is somewhat 
tricky to use directly and not really necessary (you can see an example 
here: 
https://github.com/dealii/dealii/pull/11314/files#diff-fbe7d72b2e0af27fba150e987a3ce0c2cad90b6054decc94810c898fef6d9eaf).
 
The more common case is that you have the particles inside a 
ParticleHandler that is connected to a triangulation. For this case the 
ParticleHandler can take care of the serialization by attaching the 
particle data to the triangulation data that is serialized anyway. An 
example is inside the test serialization/particle_handler_01 and _02.

Hope that helps, let me know in case you run into problems (e.g. if you 
want to serialize particles and a FE solution vector the order of 
serialization/deserialization is critical and a bit confusing due to the 
triangulation signals),

Best,
Rene

On Wednesday, December 9, 2020 at 5:15:09 PM UTC-5 [email protected] wrote:

> Dear all, I hope you are well.
> I am trying to add checkpointing in our particle code. Particles do not 
> have a save function, but they have a serialize function, which I think 
> would be exactly what I need.
> However, the function is not documented. It takes as an argument something 
> of class Archive, which I could not find any information on.
> I also grepped all over the tests, but I could not find a usage of this 
> function.
>
> https://www.dealii.org/current/doxygen/deal.II/classParticles_1_1ParticleHandler.html#a877e1aac8ef0ad6fa85ed400bf71eb1c
>
> Would anybody have a quick tutorial or example on how this function could 
> be used for checkpoint the particle_handler and the properties of the 
> particles?
> Thank you so much :)!
> 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/4c7b783e-54c1-419b-b58e-b8af91f3b22cn%40googlegroups.com.

Reply via email to