Commit 659c833c authored by Martin Reinecke's avatar Martin Reinecke
Browse files

fix

parent 0f4d315f
......@@ -56,5 +56,5 @@ class ValueInserter(LinearOperator):
res = np.zeros(self.target.shape, dtype=x.dtype)
res[self._index] = x
else:
res = x[self._index]
res = np.full((1,),x[self._index])
return Field.from_global_data(self._tgt(mode), 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