← Back to team overview

dolfin team mailing list archive

Using the vector().get() function in python

 

When I try to use Function.vector().get() in python it tells me that it needs 2 arguments and only 1 is given. It also tells me it expects a numpy double array. When I pass it a numpy array Function.vector().get(array([])) I get:

--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD 
with errorcode 59.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------

It doesn't matter if I pass an empty array, an array of zeros() or an array with values I always get this same error. How can I use get() in python?

Thank you for your help

Follow ups