Commit 91032b52 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

pedantic change

parent 03b8712a
Pipeline #21612 passed with stage
in 4 minutes and 15 seconds
......@@ -313,7 +313,7 @@ class Field(object):
new_shape[self.domain.axes[ind][0]:
self.domain.axes[ind][-1]+1] = wgt.shape
wgt = wgt.reshape(new_shape)
if ind == 0: # we need to distribute the weights along axis 0
if dobj.distaxis(self._val) >= 0 and ind == 0: # we need to distribute the weights along axis 0
wgt = dobj.local_data(dobj.from_global_data(wgt))
out *= wgt**power
fct = fct**power
......
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