Commit c50024d1 authored by Philipp Arras's avatar Philipp Arras
Browse files

Fixup

parent 446464d5
Pipeline #74788 passed with stages
in 24 minutes and 21 seconds
......@@ -296,4 +296,11 @@ def check_jacobian_consistency(op, loc, tol=1e-8, ntries=100, perf_check=True):
print(hist)
raise ValueError("gradient and value seem inconsistent")
loc = locnext
consistency_check(linmid.jac)
# FIXME The following code shows that we need prober tests for complex
# derivatives
ddtype = loc.values()[0].dtype if isinstance(loc, MultiField) else loc.dtype
tdtype = dirder.values()[0].dtype if isinstance(dirder, MultiField) else dirder.dtype
only_r_linear = ddtype != tdtype
consistency_check(linmid.jac, domain_dtype=ddtype, target_dtype=tdtype,
only_r_linear=only_r_linear)
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