Simple Expression
copies are shallow, so
from dolfin import *
exp1 = Expression('t + a*a', t=0.0, a=1.0, degree=2)
exp2 = exp1 # only shallow
exp2.t = 3.14
print(exp1.t)
prints 3.14
. How to make a deep-copy of an Expression
? (Preferably without dragging the degree and such through the entire code base.)