Hi everyone,
im trying to pickle and unpickle GridFunctions in a time dependent problem, in order to restart a computation from the pickled data. However, on writing the data from an unpickled GridFunction into the GridFunction used in the computation
Code:
v1 = GridFunction(V)
unpickler = pickle.Unpickler(open("1.dat","rb"))
up1, = unpickler.load()
v1.vec.data = up1.data
I get the following an error:
Code:
netgen.libngpy._meshing.NgException: Archive error: Polymorphic type ngcomp::S_GridFunction<double> not registered for archive
I have attached an MWE and I on the master branch commit ee5d90c06.
Can anyone help me with this?
Best wishes,
Henry