CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 Installation (https://www.cfd-online.com/Forums/su2-installation/)
-   -   SU2 Parallel Computation (https://www.cfd-online.com/Forums/su2-installation/118836-su2-parallel-computation.html)

pdp.aero June 5, 2013 09:41

SU2 Parallel Computation
 
================================================== =================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= EXIT CODE: 255
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
================================================== =================================
Traceback (most recent call last):
File "parallel_computation.py", line 153, in <module>
main()
File "parallel_computation.py", line 53, in main
options.output )
File "parallel_computation.py", line 106, in parallel_computation
libSU2_run.SU2_DDC(Config_DDC_filename,partitions)
File "/home/payam/PDP/MyWork/SU2/SU2CODE/SU2_v2.0.1/SU2_v2.0.1/trunk/SU2Py/libSU2_run.py", line 18, in SU2_DDC
run_command( the_Command )
File "/home/payam/PDP/MyWork/SU2/SU2CODE/SU2_v2.0.1/SU2_v2.0.1/trunk/SU2Py/libSU2_run.py", line 107, in run_command
raise Exception , "SU2 process returned error '%s'" % return_code
Exception: SU2 process returned error '255'

***also when i try the same python command with sudo "sudo python parallel_computation.py -f inv_ONERAM6.cfg -p 4" i will get this message :
Traceback (most recent call last):
File "parallel_computation.py", line 24, in <module>
import os, time, sys, shutil, libSU2, libSU2_run
File "/home/payam/PDP/MyWork/SU2/SU2CODE/SU2_v2.0.1/SU2_v2.0.1/trunk/SU2Py/libSU2_run.py", line 5, in <module>
SU2_RUN = os.environ['SU2_RUN']
File "/usr/local/lib/python2.6/UserDict.py", line 22, in __getitem__
raise KeyError(key)
KeyError: 'SU2_RUN'

pdp.aero June 5, 2013 11:07

Thank you Developers. I figure out my problem.

hejiandong June 13, 2013 02:13

hello
 
Quote:

Originally Posted by pdp.aero (Post 432200)
================================================== =================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= EXIT CODE: 255
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
================================================== =================================
Traceback (most recent call last):
File "parallel_computation.py", line 153, in <module>
main()
File "parallel_computation.py", line 53, in main
options.output )
File "parallel_computation.py", line 106, in parallel_computation
libSU2_run.SU2_DDC(Config_DDC_filename,partitions)
File "/home/payam/PDP/MyWork/SU2/SU2CODE/SU2_v2.0.1/SU2_v2.0.1/trunk/SU2Py/libSU2_run.py", line 18, in SU2_DDC
run_command( the_Command )
File "/home/payam/PDP/MyWork/SU2/SU2CODE/SU2_v2.0.1/SU2_v2.0.1/trunk/SU2Py/libSU2_run.py", line 107, in run_command
raise Exception , "SU2 process returned error '%s'" % return_code
Exception: SU2 process returned error '255'

***also when i try the same python command with sudo "sudo python parallel_computation.py -f inv_ONERAM6.cfg -p 4" i will get this message :
Traceback (most recent call last):
File "parallel_computation.py", line 24, in <module>
import os, time, sys, shutil, libSU2, libSU2_run
File "/home/payam/PDP/MyWork/SU2/SU2CODE/SU2_v2.0.1/SU2_v2.0.1/trunk/SU2Py/libSU2_run.py", line 5, in <module>
SU2_RUN = os.environ['SU2_RUN']
File "/usr/local/lib/python2.6/UserDict.py", line 22, in __getitem__
raise KeyError(key)
KeyError: 'SU2_RUN'



hello! when running parallel_computation.py, i confronted the same problem with u, could u tell me how to solve this problem, thank u!!

rktchip June 13, 2013 17:16

Glad you got it working, would be nice to know what you fixed.
Also a comment, you should not need to run sudo to execute SU2
- Trent

pdp.aero June 14, 2013 10:42

Quote:

Originally Posted by rktchip (Post 433893)
Glad you got it working, would be nice to know what you fixed.
Also a comment, you should not need to run sudo to execute SU2
- Trent

Thank you for a comment, yes I know, It is just a habit.:)

As you know building the SU2_DDC needs metis, So I have two version of metis in my system, metis-5.0.3 installed in my root and metis-4.0.3 in my trunk. When I was trying to build the code with metis-5.0.3, I got that error. I used mpicxx first and then change it to mpicc and then mpirun and nothing has been changed,So that is irrelevant to my compiler, Thus I compiled metis-4 first and then configure the code with metis-4.0.3 header and libs without cgns lib, moreover I used SU2_v2.0.1 instead of SU2_v2 and it is working great now, but still I cannot understand something, why every time that I reboot my system I have to export environment variable for SU2_RUN, Otherwise I got an error about couldn't find SU2_RUN.

I would like to thank you for your great work, It would be a great honor to use your code for my research work.
payam

rktchip June 19, 2013 14:02

great, yeah metis 5 operates a bit differently from 4. glad you got it working

you can edit your bashrc file (~/.bashrc) to export SU2_RUN everytime you boot up.

best,
- trent


All times are GMT -4. The time now is 19:01.