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

fix Linearization.outer

parent 6e6d9366
Pipeline #75228 passed with stages
in 8 minutes and 27 seconds
...@@ -207,12 +207,13 @@ class Linearization(Operator): ...@@ -207,12 +207,13 @@ class Linearization(Operator):
return self.__mul__(other) return self.__mul__(other)
from .operators.outer_product_operator import OuterProduct from .operators.outer_product_operator import OuterProduct
if other.jac is None: if other.jac is None:
return, other.domain)(other), return, self._val)(other),
OuterProduct(self._jac(self._val), other.domain)) OuterProduct(other.domain, self._jac(self._val)))
tmp_op = OuterProduct(, self._val)
return return
OuterProduct(self._val,, tmp_op(other._val),
OuterProduct(self._jac(self._val), OuterProduct(, self._jac(self._val))._myadd(
OuterProduct(self._val,, False)) tmp_op(other._jac), False))
def vdot(self, other): def vdot(self, other):
"""Computes the inner product of this Linearization with a Field or """Computes the inner product of this Linearization with a Field or
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