Commit 116a16c6 authored by Reimar H Leike's avatar Reimar H Leike
Browse files

fixup

parent 4231c07b
Pipeline #62451 passed with stages
in 7 minutes and 1 second
......@@ -280,7 +280,7 @@ class StudentTEnergy(EnergyOperator):
return Field.scalar(v)
if not x.want_metric:
return v
met = ScalingOperator(self.domain, (self._theta+1)/(self._theta+3))
met = ScalingOperator((self._theta+1)/(self._theta+3), self.domain)
met = SandwichOperator.make(x.jac, met)
return v.add_metric(met)
......
......@@ -35,7 +35,7 @@ class Log1p(Operator):
lin = isinstance(x, Linearization)
xval = x.val if lin else x
xlval = xval.local_data
res = from_local_data(x.domain, log1p(xlval))
res = from_local_data(xval.domain, log1p(xlval))
if not lin:
return res
jac = DiagonalOperator(1/(1+xval))
......
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