At the moment I am using something like this to run a c++ program:
mpirun -np 4 ./test
This works fine, but the problem is that I am wrapping the c++ program with Python. So I want to set the number of processors in Python and deliver it to the c++ program.
Is it possible to set the number of used processors e.g. as fixed value in the c++ code without using the command line? How does a simple example look like?