Re: [deal.II] Broadcasting user types containing smart pointers

2024-03-12 Thread Paras Kumar
Thank you for the hints. It works now. Best regards, Paras On Wed, Mar 6, 2024 at 12:36 AM Wolfgang Bangerth 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

Re: [deal.II] Broadcasting user types containing smart pointers

2024-03-05 Thread Wolfgang Bangerth
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

Re: [deal.II] Broadcasting user types containing smart pointers

2024-03-05 Thread Paras Kumar
Dear Wolfgang, 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

Re: [deal.II] Broadcasting user types containing smart pointers

2024-03-05 Thread Wolfgang Bangerth
On 3/5/24 07:46, Paras Kumar wrote: Within the context of an MPI parallel code, I need to broadcast the ConstitutiveParameters struct which contains std::unique pointer to the base class StrainEnergyFuncParameters; cf. MWE file. Using the ideas  discussed in the post

[deal.II] Broadcasting user types containing smart pointers

2024-03-05 Thread Paras Kumar
Dear deal.II Community, Within the context of an MPI parallel code, I need to broadcast the ConstitutiveParameters struct which contains std::unique pointer to the base class StrainEnergyFuncParameters; cf. MWE file. Using the ideas discussed in the post