Q: deserialize after updating dealii

64 views
Skip to first unread message

Najwa Alshehri

unread,
Nov 6, 2023, 3:03:07 AM11/6/23
to deal.II User Group
Dear developers and group members,


I was using an old version of Dealii where I was serializing some solutions and deserializing them where needed. In the code where I deserialize the solution I used to use the following headers:


#include
<boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <boost/serialization/vector.hpp>

#include <fstream>
#include <iostream>

and I used 
std::ifstream iss("serialized_ex2");
boost::archive::text_iarchive ia(iss);

It used to work fine. However, after updating Dealii, the code breaks and I get the following error:

Exception on processing:
unregistered class
Aborting!


Do you have an idea of what could be the missing header or class?

Your help is highly appreciated,
Najwa



Bruno Turcksin

unread,
Nov 6, 2023, 9:33:11 AM11/6/23
to deal.II User Group
Najwa,

Are you serializing/deserializing the solution using the same version of deal.II and Boost? If you serialized the solution using the old version of deal.II, I don't think you can deserialize it using a newer version of deal.II

Best,

Bruno

Najwa Alshehri

unread,
Nov 7, 2023, 2:49:18 AM11/7/23
to deal.II User Group
Hello Bruno,

I have the solution serialized with the old version. Do you think this is the issue? I will do everything with the new version today and update you if it works.

Best,
Najwa

Najwa Alshehri

unread,
Nov 7, 2023, 4:14:54 AM11/7/23
to deal.II User Group
Dear Bruno,

I appreciate your observation. I reprocessed the solution by serializing it with the updated version of Dealii, and subsequently, when I deserialized it in a different code, it functioned as expected. 

I appreciate your help.
Best,
Najwa

Reply all
Reply to author
Forward
0 new messages