Skip to content

Commit 0911ef2

Browse files
authored
fix warnings
1 parent 27821b1 commit 0911ef2

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/regression.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
uses: docker://ghcr.io/su2code/su2/test-su2:230225-2136
129129
with:
130130
# -t <Tutorials-branch> -c <Testcases-branch>
131-
args: -b ${{github.ref}} -t develop -c py_wrapper_example -s ${{matrix.testscript}}
131+
args: -b ${{github.ref}} -t develop -c develop -s ${{matrix.testscript}}
132132
- name: Cleanup
133133
uses: docker://ghcr.io/su2code/su2/test-su2:230225-2136
134134
with:

TestCases/py_wrapper/wavy_wall/run_steady.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ def RunPrimal(channel_width, deform_amplitude):
143143
Returns the objective function.
144144
"""
145145
comm = MPI.COMM_WORLD
146-
rank = comm.Get_rank()
147146

148147
with open('config.cfg', 'w') as f:
149148
f.write(common_settings.replace('__WIDTH__', str(channel_width)) + primal_settings)
@@ -175,7 +174,6 @@ def RunAdjoint(channel_width, deform_amplitude):
175174
Returns the sensitivity of the objective function to the amplitude and width.
176175
"""
177176
comm = MPI.COMM_WORLD
178-
rank = comm.Get_rank()
179177

180178
with open('config_ad.cfg', 'w') as f:
181179
f.write(common_settings.replace('__WIDTH__', str(channel_width)) + adjoint_settings)
@@ -278,7 +276,7 @@ def Deformation(t, amplitude, marker_id, driver, check = False):
278276
def SumSensitivity(t, marker_id, driver):
279277
"""Integrates the sensitivity with respect to the amplitude of the deformation."""
280278
if marker_id < 0:
281-
return
279+
return 0.0
282280
ini_coords = driver.MarkerInitialCoordinates(marker_id)
283281
phase = Phase(t)
284282
sens = 0

0 commit comments

Comments
 (0)