Planned maintenance on Wednesday, 2021-01-20, 17:00-18:00. Expect some interruptions during that time

Commit f3dea2e4 authored by Philipp Arras's avatar Philipp Arras

Merge branch 'linearization_logic_fixups' into 'NIFTy_6'

Linearization logic fixups

See merge request !427
parents f507f3aa 951f490f
Pipeline #71314 passed with stages
in 17 minutes and 39 seconds
......@@ -27,10 +27,6 @@ class Operator(metaclass=NiftyMeta):
domain, and can also provide the Jacobian.
def domain(self):
"""The domain on which the Operator's input Field is defined.
......@@ -202,7 +198,7 @@ class Operator(metaclass=NiftyMeta):
return self.apply(x.trivial_jac()).prepend_jac(x.jac)
elif isinstance(x, (Field, MultiField)):
return self.apply(x)
raise TypeError('Operator can only consume Field, MultiFields and Linearizations')
return self @ x
def ducktape(self, name):
from .simple_linear_operators import ducktape
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