Commit 87834184 authored by Philipp Frank's avatar Philipp Frank
Browse files

fix _TwoLogIntegrations adjoint

parent 147c85f3
Pipeline #63021 failed with stages
in 4 minutes and 15 seconds
......@@ -108,8 +108,8 @@ class _TwoLogIntegrations(LinearOperator):
x[2:] = np.cumsum(x[2:][::-1])[::-1]
res[0] += x[2:]
x[2:] *= self._logvol/2.
res[1:-1] += res[2:]
x[1] += np.cumsum(res[2:][::-1])[::-1]
x[1:-1] += x[2:]
res[1] += np.cumsum(x[2:][::-1])[::-1]
return from_global_data(self._domain, res)
......
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