CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Unable to run in parallel

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2017, 02:14
Default Unable to run in parallel
  #1
New Member
 
Boris Mandadz
Join Date: Dec 2013
Posts: 4
Rep Power: 12
bmandadz is on a distinguished road
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!
bmandadz is offline   Reply With Quote

Old   April 4, 2017, 05:19
Default
  #2
Super Moderator
 
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 10
talbring is on a distinguished road
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
talbring is offline   Reply With Quote

Old   April 4, 2017, 12:13
Default
  #3
New Member
 
Boris Mandadz
Join Date: Dec 2013
Posts: 4
Rep Power: 12
bmandadz is on a distinguished road
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 is offline   Reply With Quote

Old   April 4, 2017, 16:14
Default
  #4
New Member
 
Boris Mandadz
Join Date: Dec 2013
Posts: 4
Rep Power: 12
bmandadz is on a distinguished road
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!
bmandadz is offline   Reply With Quote

Old   July 19, 2017, 07:33
Default
  #5
New Member
 
jared
Join Date: Mar 2015
Posts: 17
Rep Power: 11
jsagaga is on a distinguished road
Quote:
Originally Posted by bmandadz View Post
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.
jsagaga is offline   Reply With Quote

Old   July 19, 2017, 09:28
Default
  #6
New Member
 
Boris Mandadz
Join Date: Dec 2013
Posts: 4
Rep Power: 12
bmandadz is on a distinguished road
Quote:
Originally Posted by jsagaga View Post
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!
bmandadz is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 15:50.