Hello
I've used to set Fenics function values with numpy arrays with
foo.vector()[:] = np_arr
with dolfin-version 1.2 and 1.4.
Recently our machines have been upgraded to dolfin-version 1.5, and above code doesn't work any more with error
TypeError: contiguous numpy array of 'dolfin_index' expected. Make sure that the numpy array is contiguous, with 1 dimension, and uses dtype=int64.
which seems strange to me, since np_arr holds reals and not integers.
I've discovered i can use
foo.vector().set_local(np_arr)
but i haven't found any such changes in the dolfin-1.5 changelog.
Is there a fault on my side?
Thanks!