8.3.1.1. function convention
The Python function, that can be used with Uranie, receives item values directly in the function parameters and return an output list (even if they are only one value). The rosenbrock example is given below.
def rosenbrock(x, y) :
d1 = (1-x)
d2 = (y-x*x)
return [d1*d1 + d2*d2,]
TThreadedRun should now be supported and TMpiRun works but exits badly: the C++ destructor is
not called, resulting in an incorrect MPI exit (MPI_Finalize is not call). Put the stopSlave method
call as last instruction to avoid that evaluation processes stop before master process.
The TPythonEval is also able to deal with vectors and strings as inputs and outputs. If the way to
deal with string is transparent, vector are just simple plain list of real.