Skip to content

Commit 1a7b4e6

Browse files
authored
Merge pull request #1437 from thomasdick/feature_adj_radiation_regressiontest
Fixed an error for the Coupled RHT-CFD Adjoint test in serial_regression_AD.py
2 parents 1e5d4ff + 0820c43 commit 1a7b4e6

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

TestCases/serial_regression_AD.py

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -247,21 +247,6 @@ def main():
247247
discadj_heat.tol = 0.00001
248248
test_list.append(discadj_heat)
249249

250-
###################################
251-
### Coupled RHT-CFD Adjoint ###
252-
###################################
253-
254-
# Coupled discrete adjoint for radiative heat transfer in heated cylinder
255-
discadj_rht = TestCase('discadj_rht')
256-
discadj_rht.cfg_dir = "radiation/p1adjoint"
257-
discadj_rht.cfg_file = "configp1adjoint.cfg"
258-
discadj_rht.test_iter = 10
259-
discadj_rht.su2_exec = "discrete_adjoint.py -f"
260-
discadj_rht.timeout = 1600
261-
discadj_rht.reference_file = "of_grad_cd.csv.ref"
262-
discadj_rht.test_file = "of_grad_cd.csv"
263-
test_list.append(discadj_rht)
264-
265250
###################################
266251
### Coupled FSI Adjoint ###
267252
###################################
@@ -298,6 +283,22 @@ def main():
298283

299284
pass_list = [ test.run_test() for test in test_list ]
300285

286+
###################################
287+
### Coupled RHT-CFD Adjoint ###
288+
###################################
289+
290+
# Coupled discrete adjoint for radiative heat transfer in heated cylinder
291+
discadj_rht = TestCase('discadj_rht')
292+
discadj_rht.cfg_dir = "radiation/p1adjoint"
293+
discadj_rht.cfg_file = "configp1adjoint.cfg"
294+
discadj_rht.test_iter = 10
295+
discadj_rht.su2_exec = "discrete_adjoint.py -f"
296+
discadj_rht.timeout = 1600
297+
discadj_rht.reference_file = "of_grad_cd.csv.ref"
298+
discadj_rht.test_file = "of_grad_cd.csv"
299+
pass_list.append(discadj_rht.run_filediff())
300+
test_list.append(discadj_rht)
301+
301302
######################################
302303
### RUN PYTHON TESTS ###
303304
######################################

0 commit comments

Comments
 (0)