su2code/SU2

parallel_computation.py cannot do parallel computation normally, and repeatition occurs

Closed this issue · 1 comments

Hi, this is an SU2 user who want to use parallel_computation.py to simulate the QuickStart configuration file.
When I access the QuickStart folder and type “parallel_computation.py -f inv_NACA0012.cfg -n 4”, the parallel computation do not work but everything repeat 4 times. The same solution also appear 4 times and the speed become lower.

|           0|  1.1562e+00|   -1.026860|    0.201330|    0.082117|
|           1|  1.0859e+00|   -1.169122|    0.263458|    0.037718|
|           1|  1.1016e+00|   -1.169122|    0.263458|    0.037718|
|           1|  1.1172e+00|   -1.169122|    0.263458|    0.037718|
|           1|  1.1562e+00|   -1.169122|    0.263458|    0.037718|
|           2|  1.0833e+00|   -1.236203|    0.301817|    0.029207|
|           2|  1.1042e+00|   -1.236203|    0.301817|    0.029207|
|           2|  1.1354e+00|   -1.236203|    0.301817|    0.029207|
|           2|  1.1458e+00|   -1.236203|    0.301817|    0.029207|
|           3|  1.0742e+00|   -1.327201|    0.320840|    0.024965|
|           3|  1.1055e+00|   -1.327201|    0.320840|    0.024965|
|           3|  1.1172e+00|   -1.327201|    0.320840|    0.024965|
|           3|  1.1172e+00|   -1.327201|    0.320840|    0.024965|
|           4|  1.0906e+00|   -1.419001|    0.329132|    0.023806|
|           4|  1.0844e+00|   -1.419001|    0.329132|    0.023806|
|           4|  1.1125e+00|   -1.419001|    0.329132|    0.023806|
|           4|  1.1187e+00|   -1.419001|    0.329132|    0.023806|
|           5|  1.0859e+00|   -1.513907|    0.332101|    0.023194|

However, when I type this "mpirun -np 4 SU2_CFD inv_NACA0012.cfg" the parallel computing can work normally.
I am sure I installed mpich and enabled python wrapper.
How can I solve this problem of those repeatition?

Thank you very much!

The parallel_computation script is useless at the moment.
In theory this script will call mpirun, so unless there is another mpirun on your system, which python finds first somehow... it should work.
Try setting SU2_MPI_COMMAND="full path to the mpirun that works" (get the path with which mpirun)