Commit 57ef1b82 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

fixes

parent e0b78c13
Pipeline #21453 passed with stage
in 4 minutes and 16 seconds
......@@ -315,7 +315,7 @@ class Field(object):
wgt = wgt.reshape(new_shape)
# FIXME only temporary
if ind==0:
wgt = dobj.local_data(dobj.from_global_data(wgt, distaxis=0))
wgt = dobj.local_data(dobj.from_global_data(wgt))
out *= wgt**power
fct = fct**power
if fct != 1.:
......
......@@ -154,5 +154,5 @@ class DiagonalOperator(EndomorphicOperator):
reshaped_local_diagonal = np.reshape(dobj.to_global_data(diag.val), self._reshaper)
if 0 in self._spaces:
reshaped_local_diagonal = dobj.local_data(dobj.from_global_data(reshaped_local_diagonal,distaxis=0))
reshaped_local_diagonal = dobj.local_data(dobj.from_global_data(reshaped_local_diagonal))
return Field(x.domain, val=x.val*reshaped_local_diagonal)
......@@ -89,7 +89,6 @@ class LaplaceOperator(EndomorphicOperator):
return self._logarithmic
def _times(self, x):
val = dobj.to_global_data(x.val)
axes = x.domain.axes[self._space]
axis = axes[0]
locval = x.val
......
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