|
[Sponsors] |
Error in running shape_optimization in parallel |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 1, 2014, 02:22 |
Error in running shape_optimization in parallel
|
#1 |
New Member
Ying Zhuying
Join Date: Nov 2014
Posts: 8
Rep Power: 11 |
Hello,everyone!
I have some problems in running shape_optimization in parallel.I running SU2 on Ubuntu. When I enter "python shape_optimization.py -f pitching_ONERAM6.cfg",it runs all right.But when I enter "python shape_optimization.py -f pitching_ONERAM6.cfg -n 4",it shows an error like below, Traceback (most recent call last): File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/shape_optimization.py", line 130, in <module> main() File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/shape_optimization.py", line 75, in main options.step ) File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/shape_optimization.py", line 113, in shape_optimization SU2.opt.SLSQP(project,x0,xb,its) File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/opt/scipy_tools.py", line 102, in scipy_slsqp epsilon = 1.0e-06 ) File "/home/gentai/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/scipy/optimize/slsqp.py", line 206, in fmin_slsqp constraints=cons, **opts) File "/home/gentai/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/scipy/optimize/slsqp.py", line 308, in _minimize_slsqp mieq = sum(map(len, [atleast_1d(c['fun'](x, *c['args'])) for c in cons['ineq']])) File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/opt/scipy_tools.py", line 185, in con_cieq cons = project.con_cieq(x) File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/opt/project.py", line 223, in con_cieq return self._eval(konfig, func,dvs) File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/opt/project.py", line 172, in _eval vals = design._eval(func,*args) File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/eval/design.py", line 132, in _eval vals = eval_func(*inputs) File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/eval/design.py", line 422, in con_cieq func = su2func(this_con,config,state) File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/eval/functions.py", line 75, in function aerodynamics( config, state ) File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/eval/functions.py", line 152, in aerodynamics info = update_mesh(config,state) File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/eval/functions.py", line 548, in update_mesh push.extend( names ) File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/io/redirect.py", line 234, in __exit__ shutil.move(old_name,new_name) File "/opt/software/Canopy/appdata/canopy-1.4.1.1975.rh5-x86_64/lib/python2.7/shutil.py", line 301, in move copy2(src, real_dst) File "/opt/software/Canopy/appdata/canopy-1.4.1.1975.rh5-x86_64/lib/python2.7/shutil.py", line 130, in copy2 copyfile(src, dst) File "/opt/software/Canopy/appdata/canopy-1.4.1.1975.rh5-x86_64/lib/python2.7/shutil.py", line 82, in copyfile with open(src, 'rb') as fsrc: IOError: [Errno 2] No such file or directory: '/home/gentai/Workzone/ZhuYing/SU2/test_20141126/test_para/DESIGNS/DSN_001/DECOMP/mesh_ONERAM6_inv_1.su2' Can someone help me? best wishes! |
|
December 4, 2014, 07:20 |
|
#2 | |
Member
Zeno
Join Date: Sep 2013
Location: Delft, The Netherlands
Posts: 63
Rep Power: 12 |
Quote:
Does the command below work for you? mpirun -n 4 SU2_PRT pitching_ONERAM6.cfg |
||
December 7, 2014, 21:31 |
|
#3 | |
New Member
Ying Zhuying
Join Date: Nov 2014
Posts: 8
Rep Power: 11 |
Quote:
I have tried "mpirun -n 4 SU2_PRT pitching_ONERAM6.cfg" ahead and after the commond "python shape_optimization.py -f pitching_ONERAM6.cfg" , it showed the same error! I also just run "mpirun -n 4 SU2_PRT pitching_ONERAM6.cfg", no new mesh was generated! |
||
December 8, 2014, 18:10 |
|
#4 |
Member
Zeno
Join Date: Sep 2013
Location: Delft, The Netherlands
Posts: 63
Rep Power: 12 |
||
December 9, 2014, 04:37 |
|
#5 |
New Member
Ying Zhuying
Join Date: Nov 2014
Posts: 8
Rep Power: 11 |
Hi, Zen!
I have already installed mpich2. if I run mpirun -n 4 SU2_PRT pitching_ONERAM6.cfg, it just read the grid without partitioning the mesh. |
|
December 9, 2014, 04:52 |
|
#6 |
Member
Zeno
Join Date: Sep 2013
Location: Delft, The Netherlands
Posts: 63
Rep Power: 12 |
mmm, maybe you did not configure SU2 for parallel computations? Other than that, I wouldn't know where else to look.
|
|
December 9, 2014, 21:14 |
|
#7 |
New Member
Ying Zhuying
Join Date: Nov 2014
Posts: 8
Rep Power: 11 |
Thank you very much!
I will try to install SU2 again! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
error while running in parallel using openmpi on local mc 6 processors | suryawanshi_nitin | OpenFOAM | 10 | February 22, 2017 21:33 |
Running mapFields with Parallel Source and Parallel Target | RDanks | OpenFOAM Pre-Processing | 4 | August 2, 2016 05:24 |
running OpenFoam in parallel | vishwa | OpenFOAM Running, Solving & CFD | 22 | August 2, 2015 08:53 |
problem in running parallel: ./Allrun: 62: shift: can't shift that many | adambarfi | OpenFOAM Running, Solving & CFD | 10 | May 11, 2015 09:31 |
Problems running in parallel - missing controlDict | Argen | OpenFOAM Running, Solving & CFD | 4 | June 7, 2012 03:50 |