|
[Sponsors] |
April 4, 2017, 02:14 |
Unable to run in parallel
|
#1 |
New Member
Boris Mandadz
Join Date: Dec 2013
Posts: 4
Rep Power: 12 |
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! |
|
April 4, 2017, 05:19 |
|
#2 |
Super Moderator
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 10 |
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 |
|
April 4, 2017, 12:13 |
|
#3 |
New Member
Boris Mandadz
Join Date: Dec 2013
Posts: 4
Rep Power: 12 |
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. |
|
April 4, 2017, 16:14 |
|
#4 |
New Member
Boris Mandadz
Join Date: Dec 2013
Posts: 4
Rep Power: 12 |
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! |
|
July 19, 2017, 07:33 |
|
#5 |
New Member
jared
Join Date: Mar 2015
Posts: 17
Rep Power: 11 |
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.
|
|
July 19, 2017, 09:28 |
|
#6 | |
New Member
Boris Mandadz
Join Date: Dec 2013
Posts: 4
Rep Power: 12 |
Quote:
I also used this guide: https://askubuntu.com/questions/6897...buntu-14-04lts Good luck! |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 91 | December 21, 2022 04:50 |
unable to run in parallel with OpenFOAM 2.2 on CentOS | einatlev | OpenFOAM Running, Solving & CFD | 9 | June 26, 2014 00:24 |
parallel Grief: BoundaryFields ok in single CPU but NOT in Parallel | JR22 | OpenFOAM Running, Solving & CFD | 2 | April 19, 2013 16:49 |
First Parallel Run - need some help | Gian Maria | OpenFOAM | 3 | June 17, 2011 12:08 |
[Commercial meshers] ST_Malloc: out of memory.malloc_storage: unable to malloc Velocity SA, | cfdproject | OpenFOAM Meshing & Mesh Conversion | 0 | April 14, 2009 15:45 |