Re: [deal.II] Query Regarding Direct Import of Dream3D Synthetic Microstructures into Deal.II

2024-03-05 Thread ME20D503 NEWTON
Dear Bangerth, I've successfully solved points 1 and 2. However, I'm encountering difficulties with point 3. Could you assist me in understanding how to extract the feature IDs from the .vtk file after reading it in dealii, and then perform further operations based on these feature IDs in de

[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 https://groups.google.com/g/dealii/c/b

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 https://groups.google.c

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 pr

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 the