Commit ba58ae24 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

bug fix

parent 6a602768
...@@ -72,7 +72,7 @@ class Linearization(object): ...@@ -72,7 +72,7 @@ class Linearization(object):
return Linearization(self._val*other, self._jac*other) return Linearization(self._val*other, self._jac*other)
if isinstance(other, (Field, MultiField)): if isinstance(other, (Field, MultiField)):
d2 = makeOp(other) d2 = makeOp(other)
return Linearization(self._val*other, self._jac*d2) return Linearization(self._val*other, d2*self._jac)
raise TypeError raise TypeError
def __rmul__(self, other): def __rmul__(self, other):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment