Thank you for the hints. It works now.

Best regards,
Paras

On Wed, Mar 6, 2024 at 12:36 AM Wolfgang Bangerth <bange...@colostate.edu>
wrote:

> On 3/5/24 09:59, Paras Kumar wrote:
> >
> > Thank you for your response. That is exactly what I am trying to do via
> the
> > deserialize function. I build an object of the desired derived type
> (based on
> > the derived type data archived during the call to serialize()) and then
> assign
> > it to the pointer at the receiving end. But the problem is that the
> > deserialize function is never called by boost. I am not sure what hint
> it
> > needs so as to call the deserialize function. Also, interestingly boost
> does
> > not call both serialize() or deserialize() during the call to
> > dealii::Utilities::unpack() but it does call serialize() during the call
> to
> > dealii::Utilities::pack().
>
> You've got the wrong function names. You either have to provide a
> serialize()
> function, or a pair of functions called save()/load(). In the latter case,
> you
> also have to say BOOST_SERIALIZATION_SPLIT_MEMBER(). Take a look at
> classes
> such as AlignedVector, for example. The BOOST documentation also has a lot
> to
> say about this.
>
> Best
>   W.
>
> --
> ------------------------------------------------------------------------
> Wolfgang Bangerth          email:                 bange...@colostate.edu
>                             www: http://www.math.colostate.edu/~bangerth/
>
>
> --
> 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 dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/1311e260-298a-431a-933e-a82240617bd8%40colostate.edu
> .
>

-- 
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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAEU6zmRFHgRRsPmy3y6%3D0J_rXUtwD_X1_pdP-54DdKF9Les9ZA%40mail.gmail.com.

Reply via email to