← Back to team overview

dolfin team mailing list archive

PyDOLFIN and overloading '='

 

I tried to do

  u0.vector() = u1.vector()

where u0 and u1 are both discrete functions, in PyDOLFIN but it doesn't work so I'm using

  u0.vector().assign( u1.vector() )

Is there a fundamental reason why '=' can't be used or does SWIG just need to be told how to overload '=' for vectors?

Garth


Follow ups