← Back to team overview

dolfin team mailing list archive

[Bug 42] Inline algebraic operators on vectors are unsafe in pydolfin

 

http://www.fenics.org/cgi-bin/bugzilla/show_bug.cgi?id=42





------- Comment #2 from martinal@xxxxxxxxx  2008-06-25 12:45 -------
Temporary workarounds:

def imul(a, b):
    v = numpy.zeros(a.size())
    a.get(v)
    a.set(b*v)

def iadd(a, b):
    v = numpy.zeros(a.size())
    w = numpy.zeros(a.size())
    a.get(v)
    b.get(w)
    a.set(v+w)


-- 
Configure bugmail: http://www.fenics.org/cgi-bin/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.