Skip to content

Commit c17aabd

Browse files
authored
Merge pull request #1039 from garcgutierrez/patch-1
Small bug in polar sweep python script
2 parents db166ba + 205b1a8 commit c17aabd

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

SU2_PY/SU2/util/polarSweepLib.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -284,18 +284,19 @@ def setPolaraType(ctrl,nc,verbose):
284284
if nAalpha > 1 :
285285
raise SystemExit('ERROR in control file: >>>>>>>> nAlpha > 1 in a Mach Ramp session <<<<<<<<')
286286

287-
if iListPhi == -1 :
288-
if velDirOption != 1 :
289-
phi = [ ] ; nPhi = 0;
290-
else:
291-
phi = [0.0] ; nPhi = 1;
287+
if iListPhi == -1 :
288+
if velDirOption != 1 :
289+
phi = [ ] ; nPhi = 0;
292290
else:
293-
phi,nPhi=readList(ctrl,iListPhi,verbose);
294-
if nPhi > 1 :
295-
raise SystemExit('ERROR in control file: >>>>>>>> nPhi > 1 in a Mach Ramp session <<<<<<<<')
296-
if velDirOption == 0 :
297-
# if phi is specified, then this is a alpha,phi case, with alpha = 0
298-
velDirOption = 1; alpha = [0.0]; nAalpha =1;
291+
phi = [0.0] ; nPhi = 1;
292+
else:
293+
phi,nPhi=readList(ctrl,iListPhi,verbose);
294+
if nPhi > 1 :
295+
raise SystemExit('ERROR in control file: >>>>>>>> nPhi > 1 in a Mach Ramp session <<<<<<<<')
296+
if velDirOption == 0 :
297+
# if phi is specified, then this is a alpha,phi case, with alpha = 0
298+
velDirOption = 1; alpha = [0.0]; nAalpha =1;
299+
299300

300301

301302
if nPhi + nBeta >= 2 :

0 commit comments

Comments
 (0)