[deal.II] Re: Saving particles for checkpointing

2020-12-12 Thread 'rene.gas...@mailbox.org' via deal.II User Group
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

Re: [deal.II] Re: Saving particles for checkpointing

2020-12-10 Thread blais...@gmail.com
Awesome. It works perfectly Thank you all :)! On Wednesday, December 9, 2020 at 8:10:13 p.m. UTC-5 Wolfgang Bangerth wrote: > On 12/9/20 5:32 PM, blais...@gmail.com wrote: > > I have one tiny question actually. > > In all tests, the std::ostringstream oss which contains some information >

Re: [deal.II] Re: Saving particles for checkpointing

2020-12-09 Thread Wolfgang Bangerth
On 12/9/20 5:32 PM, blais...@gmail.com wrote: I have one tiny question actually. In all tests, the std::ostringstream oss which contains some information about the number of particles and the data being serialized is kept. Generally, I guess this should be written to an auxiliary file, then

[deal.II] Re: Saving particles for checkpointing

2020-12-09 Thread blais...@gmail.com
I have one tiny question actually. In all tests, the std::ostringstream oss which contains some information about the number of particles and the data being serialized is kept. Generally, I guess this should be written to an auxiliary file, then re-read before deserialization can occur? On

[deal.II] Re: Saving particles for checkpointing

2020-12-09 Thread blais...@gmail.com
I think they will! I feel kind-off dumb not having realized that :) Thanks! Bruno On Wednesday, December 9, 2020 at 6:06:17 p.m. UTC-5 peterrum wrote: > Do the following links help? > - > https://github.com/dealii/dealii/blob/master/tests/serialization/particle_handler_01.cc > - >

[deal.II] Re: Saving particles for checkpointing

2020-12-09 Thread 'peterrum' via deal.II User Group
Do the following links help? - https://github.com/dealii/dealii/blob/master/tests/serialization/particle_handler_01.cc - https://github.com/dealii/dealii/blob/master/tests/serialization/particle_handler_02.cc Peter On Wednesday, 9 December 2020 at 23:15:09 UTC+1 blais...@gmail.com wrote: >