Skip to content

Commit a85322e

Browse files
committed
change optimization
1 parent c6f9d6c commit a85322e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

design/Inc_Turbulent_Bend_Wallfunctions/optimization.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565

6666

6767
# ##### create string for DV_PARAM ##### #
68-
6968
dv_param_string=""
7069
for idim in range(NDIM):
7170
xdim = ydim = zdim = "0.0"
@@ -77,7 +76,6 @@
7776
for i in range(DX):
7877
s = "( BOX, " + str(i) + ", " + str(j) + ", " + str(k) + ", " + xdim + ", " + ydim + ", " + zdim + " );"
7978
dv_param_string += s
80-
8179
# remove last semicolon
8280
dv_param_string = dv_param_string[:-1]
8381

@@ -88,7 +86,7 @@
8886
ffd_string.replace(s+", ","",2*DX*DX)
8987

9088

91-
# for bottom plane (j=0 and j=1) remove the entries that have (0.0,1.0,0.0) d.o.f.
89+
# for bottom planes j=0 and j=1 remove the entries that have (0.0, 1.0, 0.0) d.o.f. (the vertical direction)
9290
jlist = [0,1]
9391
dof = "0.0, 1.0, 0.0"
9492

@@ -142,7 +140,7 @@
142140

143141
def_command = "mpirun --allow-run-as-root -n " + ncores + " " + su2_run + "SU2_DEF " + configCopy
144142

145-
if update_restart_file = True:
143+
if update_restart_file == True:
146144
cfd_command = "mpirun --allow-run-as-root -n " + ncores + " " + su2_run + "SU2_CFD " + configCopy + " && cp restart.csv ../../solution.csv"
147145
cfd_ad_command = "mpirun --allow-run-as-root -n " + ncores + " " + su2_run + "SU2_CFD_AD " + configCopy + " && cp restart_adj_" + objstring + ".csv ../../solution_adj_"+objstring+".csv"
148146
else :

0 commit comments

Comments
 (0)