Hi all,
I have a very basic question. I updated my FEniCS version from 2017.2 to 2018.1 and now the following does not work any more:
from fenics import *
from copy import deepcopy
mesh = UnitSquareMesh(2, 2)
mesh_copy = deepcopy(mesh)
The error msg. that I get is:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/copy.py", line 169, in deepcopy
rv = reductor(4)
TypeError: can't pickle dolfin.cpp.generation.UnitSquareMesh objects
Is this intended behavior? What can I do if I still want a copy of a mesh?
Btw: I am using FEniCS via a Docker Img, if that is of importance.
Thanks in advance for any help.