← Back to team overview

dolfin team mailing list archive

Easiest way to add vectors in pydolfin

 

Currently I'm doing:
        v = u.vector()
        v[:] = x
        v.axpy(1.0, y)
to set the Vector of Function u to x+y, where x,y are Vectors. Is this
the best way?

Martin


Follow ups