# Segmentation fault in tutorial NACA0012 shape optimization

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

February 20, 2018, 11:44
Segmentation fault in tutorial NACA0012 shape optimization
#1
New Member

Lucia
Join Date: Nov 2017
Posts: 7
Rep Power: 7
Hi,

I am doing one tutorial for shape optimization, the inviscid NACA0012 profile (inv_NACA0012_basic.cfg), but I get the error attached. Anyone had it before?
Attached Images
 error_shape_optimization.jpg (132.7 KB, 18 views)

 February 24, 2018, 14:23 #2 Super Moderator   Francisco Palacios Join Date: Jan 2013 Location: Long Beach, CA Posts: 404 Rep Power: 14 Are you using the latest version of the software (v6.0) and the webpage and files from https://su2code.github.io/tutorials/...ined_NACA0012/ my screen output is different Found: mesh_NACA0012_inv.su2 Found: solution_flow.dat Found: solution_adj_cd.dat New Project: ./ Sequential Least SQuares Programming (SLSQP) parameters: Number of design variables: 38 ( 38 ) Objective function scaling factor: [1.0] Maximum number of iterations: 100 Requested accuracy: 1e-16 Initial guess for the independent variable(s): [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] Lower and upper bound for each independent variable: [(-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001)] NIT FC OBJFUN GNORM Are you sure scipy is correctly installed in your python? Best, Francisco

 March 9, 2018, 08:07 #3 New Member   Lucia Join Date: Nov 2017 Posts: 7 Rep Power: 7 I checked and python couldn't find scipy. I fixed the problem now. However when I run -sudo make- I get this error "No rule to make target /home/lazzini/SU2/SU2_AD/SU2_CFD/obj/libSU2Core.a', needed by 'SU2_APIPYTHON_wrap.cxx'. Stop. The commands SU2_CFD and SU2_CFD_AD work fine, but shape_optimization.py gives this " File "/usr/local/bin/SU2/eval/design.py", line 240, in obj_f func += su2func(this_obj,config,state) sign scale TypeError: unsupported operand type(s) for *: 'OrderedBunch' and 'float'" Is it related to the error I got during the compilation?

 March 16, 2018, 05:41 #4 New Member   Lucia Join Date: Nov 2017 Posts: 7 Rep Power: 7 Problem solved, somehow SU2 was taking the .py script from an old folder. I changed the .bashrc, but apparently it was not enough. Thanks!