Unexpected behaviour in `PETScVector.__setitem__ `
Issue #1105
new
PETScVector.__setitem__
does not work with slices from numpy
arrays:
u = Function(V)
u.vector()[:] = arr[:,0]
does not produce the expected result while
u = Function(V)
u.vector()[:] = np.array(arr[:,0])
does. Strangely enough PETScVector.set_local
behaves as expected.
Dolfin version: 2019.1.0