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

error: in parallel in SU2.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 2, 2018, 05:40
Default error: in parallel in SU2.
  #1
New Member
 
lee
Join Date: Mar 2018
Posts: 4
Rep Power: 8
Duter LEE is on a distinguished road
HELLO,ALL!
When performing parallel calculations in SU2, the following error occurs:
$ parallel_computation.py -f inv_ONERAM6.cfg -n 4
Traceback (most recent call last):
File "/usr/local/bin/parallel_computation.py", line 40, 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'
Duter LEE is offline   Reply With Quote

Old   April 6, 2018, 10:53
Default
  #2
New Member
 
Join Date: Feb 2018
Posts: 4
Rep Power: 8
aa.g is on a distinguished road
Hello,

Have you added the variable $SU2_RUN=/path/to/your/SU2/build/bin to your environment ?

In the traceback, you can see that the error appears when parallel_computation.py asks for the entry 'SU2_RUN' in os.environ. That is a mapping of the environment variables that are available to Python when you run the script. The KeyError indicates that this entry is missing, i.e. the environment variable is not defined !

If you are not sure of the path you need to set it to, you should find it in the config.log file that was created in the directory where you configured SU2 (look for "Build Configuration Summary").

Quote:
Originally Posted by Duter LEE View Post
HELLO,ALL!
When performing parallel calculations in SU2, the following error occurs:
$ parallel_computation.py -f inv_ONERAM6.cfg -n 4
Traceback (most recent call last):
File "/usr/local/bin/parallel_computation.py", line 40, 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'
aa.g is offline   Reply With Quote

Reply


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
Parallel execution of SU2 marco.fossati SU2 15 June 13, 2024 16:39
Parallel Build for SU2 on Ubuntu McAero SU2 11 October 28, 2018 17:53
Installing SU2 v5 for Parallel Computations McAero SU2 Installation 4 December 10, 2017 17:02
Explicitly filtered LES saeedi Main CFD Forum 16 October 14, 2015 11:58
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 18:45


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