|
[Sponsors] |
June 17, 2014, 05:44 |
Error when parallel
|
#1 |
Member
Antoni Alexander
Join Date: Nov 2009
Posts: 43
Rep Power: 17 |
Hello everyone, I am a new SU2 user. After finishing parallel installation on a cluster, I run the m6 example which yields the following error:
$ parallel_computation.py -f inv_ONERAM6.cfg -p 4 Traceback ... File "usr/local/bin/parallel_computation.py" line27 Import SU2 File "usr/local/bin/SU2/___init___.py" line 3 from . Import run ^ SyntaxError : invalid syntax And I am sure that I have done the parallel config right. So, is there any other possible reason for this? Any suggestion will be appreciated. |
|
June 17, 2014, 23:30 |
|
#2 |
New Member
XingYu
Join Date: May 2014
Posts: 25
Rep Power: 12 |
I install the V3.2 in win7,but when paralleling,facing an similar error:
D:\>cd naca0012 D:\naca0012>parallel_computation.py -f inv_NACA0012.cfg -p 2 Traceback (most recent call last): File "C:\SU2\parallel_computation.py", line 26, in <module> import SU2 ImportError: No module named SU2 D:\naca0012> I am looking forward to your rely |
|
June 18, 2014, 06:33 |
|
#3 |
New Member
Jeffrey van Oostrom
Join Date: Feb 2014
Location: Delft, The Netherlands
Posts: 16
Rep Power: 12 |
Simply copy the folder "SU2" from the folder "SU2_PY/" from the source files to the folder where the parallel_computation.py is located.
|
|
June 18, 2014, 07:12 |
|
#4 | |
New Member
XingYu
Join Date: May 2014
Posts: 25
Rep Power: 12 |
Quote:
....... import os, sys, shutil, copy from optparse import OptionParser sys.path.append(os.environ['SU2_RUN']) import SU2 # ------------------------------------------------------------------- # Main # ------------------------------------------------------------------- ...... The error is coming the "import SU2",I want to know why the "import SU2" is here and why the error is ImportError: No module named SU2 After I install the SU2 V3.2,I set the "SU2_CFD" and "SU2_RUN" as the "path" in environment variable like V3.1,Do I need do something else? Look forward to your reply. |
||
June 18, 2014, 08:49 |
|
#5 |
New Member
Jeffrey van Oostrom
Join Date: Feb 2014
Location: Delft, The Netherlands
Posts: 16
Rep Power: 12 |
When I installed the 3.2 version, I went to C:\SU2 and it did not have any folders. The python script tries to import a folder called SU2, but it does not exist, nor are the require files present. What I did, was simply download the source code, and within that source code there is a folder called "SU2_PY". In that folder, there is a folder called "SU2", which is the folder that is missing in the windows installer. Copy that folder into your C:\SU2, such that there is a folder called SU2, including the file contents in folder C:\SU2.
To summarize: Download the source code here: https://github.com/su2code/SU2/archive/v3.2.0.zip Copy the folder /SU2_PY/SU2 to C:\SU2 The folder C:\SU2 looks like: Code:
2DChannel.py 3DChannel.py change_version_number.py compute_polar.py compute_stability.py config_gui.py continuous_adjoint.py documentation.txt filter_adjoint.py finite_differences.py hdf5.dll libiomp5md.dll merge_solution.py mesh_adaptation.py mesh_deformation.py package_structure.txt package_tests.py parallel_computation.py parse_config.py patient_designspace.py set_ffd_design_var.py shape_optimization.py SU2/ SU2_CFD.exe SU2_DEF.exe SU2_DOT.exe SU2_GEO.exe SU2_MSH.exe SU2_PRT.exe SU2_SOL.exe szip.dll tecio.dll zlib.dll |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
simpleFoam parallel | AndrewMortimer | OpenFOAM Running, Solving & CFD | 12 | August 7, 2015 19:45 |
Can not run OpenFOAM in parallel in clusters, help! | ripperjack | OpenFOAM Running, Solving & CFD | 5 | May 6, 2014 16:25 |
simpleFoam in parallel issue | plucas | OpenFOAM Running, Solving & CFD | 3 | July 17, 2013 12:30 |
parallel Grief: BoundaryFields ok in single CPU but NOT in Parallel | JR22 | OpenFOAM Running, Solving & CFD | 2 | April 19, 2013 17:49 |
Parallel Computing Classes at San Diego Supercomputer Center Jan. 20-22 | Amitava Majumdar | Main CFD Forum | 0 | January 5, 1999 13:00 |