Hi there!
I have some problems when running my FEniCS implementation in parallell with mpirun -np and so on. The problems are occurring because I'm applying list slicing different places. E.g. I have got a PETSc vector x and want to assign a new vector to this PETSc vector as
x[:] = some_array
However, when applying MPI in parallell this causes problems, error message
File "/usr/lib/python2.7/dist-packages/dolfin/cpp/la.py", line 1226, in setslice
self.setitem(slice(i, j, 1), values)
File "/usr/lib/python2.7/dist-packages/dolfin/cpp/la.py", line 1257, in setitem
_set_vector_items_array_of_float(self, indices, values)
RuntimeError: non matching dimensions on input
I am not experienced with MPI at all, have tried reading here and there but I can't find an answer to my problem: how to easily apply list slicing in parallell?
Thanks!