CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Unable to run in parallel (https://www.cfd-online.com/Forums/su2/185847-unable-run-parallel.html)

bmandadz April 4, 2017 02:14

Unable to run in parallel
 
I am trying to get up and running with SU2 but cannot seem to get the python scripts to run. Trying to run the turbulent ONERAM6 case:

$parallel_computation.py -n 4 -f turb_ONERAM6.cfg

I get this:

Traceback (most recent call last):
File "/usr/local/bin/parallel_computation.py", line 36, in <module>
sys.path.append(os.environ['SU2_RUN'])
File "/usr/lib/python2.7/UserDict.py", line 40, in __getitem__
raise KeyError(key)
KeyError: 'SU2_RUN'

Any help will be appreciated!

talbring April 4, 2017 05:19

Hi Boris,

make sure that the environment variable SU2_RUN points to the correct folder.

Have a look here for more information:

https://github.com/su2code/SU2/wiki/...rallel-support

Tim

bmandadz April 4, 2017 12:13

I am using the suggested modifications to the bashrc file after installation. I used the following modifications to the config file:

./configure CXXFLAGS="-O3" --enable-mpi
--with-cc=/usr/bin/mpicc --with-cxx=/usr/bin/mpicxx
--with-CGNS-lib=/usr/local/lib --with-CGNS-include=/usr/local/include --enable-PY_WRAPPER

and then include the following lines in the bshrc file:

export SU2_RUN="/usr/local/bin"
export SU2_HOME="/home/boris/SU2"
export PATH=$PATH:$SU2_RUN
export PYTHONPATH=$PYTHONPATH:$SU2_RUN

I also tried:
export SU2_RUN="/usr/bin"
export SU2_HOME="/home/boris/SU2"
export PATH=$PATH:$SU2_RUN
export PYTHONPATH=$PYTHONPATH:$SU2_RUN

Actually no matter what I do to the paths I get the same error.

bmandadz April 4, 2017 16:14

The issue is resolved. Using the following in the bashrc file:

export SU2_RUN="/usr/local/lib"
export SU2_HOME="/home/boris/SU2"
export PATH=$PATH:$SU2_RUN
export PYTHONPATH=$PYTHONPATH:$SU2_RUN

and making sure MPICH is properly installed.

Thank you!

jsagaga July 19, 2017 07:33

Quote:

Originally Posted by bmandadz (Post 643691)
The issue is resolved. Using the following in the bashrc file:

export SU2_RUN="/usr/local/lib"
export SU2_HOME="/home/boris/SU2"
export PATH=$PATH:$SU2_RUN
export PYTHONPATH=$PYTHONPATH:$SU2_RUN

and making sure MPICH is properly installed.

Thank you!

Hello Boris, were you running su2 on windows or linux? I'm trying to run in parallel as well (windows 10 via command prompt), but have been unsuccessful.

bmandadz July 19, 2017 09:28

Quote:

Originally Posted by jsagaga (Post 657612)
Hello Boris, were you running su2 on windows or linux? I'm trying to run in parallel as well (windows 10 via command prompt), but have been unsuccessful.

I am running Windows Server 2012 R2 with Ubuntu 16 on Virtualbox. I think after installing many packages the one the fixed the situation was the actual mpich -> $sudo apt get install mpich.


I also used this guide:

https://askubuntu.com/questions/6897...buntu-14-04lts

Good luck!


All times are GMT -4. The time now is 13:22.