Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarruscag committed Oct 7, 2024
1 parent a85b74b commit b7035ef
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 18 deletions.
3 changes: 3 additions & 0 deletions TestCases/TestCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,9 @@ def run_filediff(self, with_tsan=False, with_asan=False):
print('Ignored entries: ' + str(ignore_counter))
print('Maximum difference: ' + str(max_delta) + '%')

if not passed:
print(open(self.test_file).readlines())

print('==================== End Test: %s ====================\n'%self.tag)

sys.stdout.flush()
Expand Down
10 changes: 5 additions & 5 deletions TestCases/hybrid_regression_AD.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ def main():
discadj_rans_naca0012_sa.cfg_dir = "disc_adj_rans/naca0012"
discadj_rans_naca0012_sa.cfg_file = "turb_NACA0012_sa.cfg"
discadj_rans_naca0012_sa.test_iter = 10
discadj_rans_naca0012_sa.test_vals = [-2.230621, 0.644162, 0.177890, -0.000016, 5.000000, -3.007652, 5.000000, -7.728093]
discadj_rans_naca0012_sa.test_vals = [-2.997064, -0.196172, 0.000003, -0.000000, 5.000000, -2.919675, 5.000000, -7.323218]
test_list.append(discadj_rans_naca0012_sa)

# Adjoint turbulent NACA0012 SST
discadj_rans_naca0012_sst = TestCase('discadj_rans_naca0012_sst')
discadj_rans_naca0012_sst.cfg_dir = "disc_adj_rans/naca0012"
discadj_rans_naca0012_sst.cfg_file = "turb_NACA0012_sst.cfg"
discadj_rans_naca0012_sst.test_iter = 10
discadj_rans_naca0012_sst.test_vals = [-2.221846, -0.491928, 0.182000, -0.000018]
discadj_rans_naca0012_sst.test_vals = [-2.234104, -0.198500, 2.763900, -0.039720]
test_list.append(discadj_rans_naca0012_sst)

#######################################
Expand Down Expand Up @@ -143,7 +143,7 @@ def main():
discadj_cylinder.cfg_dir = "disc_adj_rans/cylinder"
discadj_cylinder.cfg_file = "cylinder.cfg"
discadj_cylinder.test_iter = 9
discadj_cylinder.test_vals = [3.746907, -1.544883, -0.008321, 0.000014]
discadj_cylinder.test_vals = [1.639345, -2.834279, -0.009538, 0.000020]
discadj_cylinder.unsteady = True
discadj_cylinder.enabled_with_tsan = False
test_list.append(discadj_cylinder)
Expand All @@ -157,7 +157,7 @@ def main():
discadj_cylinder.cfg_dir = "disc_adj_rans/cylinder"
discadj_cylinder.cfg_file = "cylinder_Windowing_AD.cfg"
discadj_cylinder.test_iter = 9
discadj_cylinder.test_vals = [3.004402]
discadj_cylinder.test_vals = [2.183376]
discadj_cylinder.unsteady = True
discadj_cylinder.enabled_with_tsan = False
test_list.append(discadj_cylinder)
Expand All @@ -171,7 +171,7 @@ def main():
discadj_DT_1ST_cylinder.cfg_dir = "disc_adj_rans/cylinder_DT_1ST"
discadj_DT_1ST_cylinder.cfg_file = "cylinder.cfg"
discadj_DT_1ST_cylinder.test_iter = 9
discadj_DT_1ST_cylinder.test_vals = [3.698167, -1.607051, -0.002159, 0.000028]
discadj_DT_1ST_cylinder.test_vals = [1.196346, -3.339016, -0.006212, 0.000020]
discadj_DT_1ST_cylinder.unsteady = True
discadj_DT_1ST_cylinder.enabled_with_tsan = False
test_list.append(discadj_DT_1ST_cylinder)
Expand Down
16 changes: 8 additions & 8 deletions TestCases/parallel_regression_AD.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@ def main():
discadj_rans_naca0012_sa.cfg_dir = "disc_adj_rans/naca0012"
discadj_rans_naca0012_sa.cfg_file = "turb_NACA0012_sa.cfg"
discadj_rans_naca0012_sa.test_iter = 10
discadj_rans_naca0012_sa.test_vals = [-2.230568, 0.644202, 0.181590, -0.000018, 5.000000, -3.421717, 5.000000, -6.769530]
discadj_rans_naca0012_sa.test_vals = [-2.996963, -0.196020, 0.000004, -0.000000, 5.000000, -3.430615, 5.000000, -7.411396]
test_list.append(discadj_rans_naca0012_sa)

# Adjoint turbulent NACA0012 SST
discadj_rans_naca0012_sst = TestCase('discadj_rans_naca0012_sst')
discadj_rans_naca0012_sst.cfg_dir = "disc_adj_rans/naca0012"
discadj_rans_naca0012_sst.cfg_file = "turb_NACA0012_sst.cfg"
discadj_rans_naca0012_sst.test_iter = 10
discadj_rans_naca0012_sst.test_vals = [-2.221848, -0.502430, 0.182000, -0.000018]
discadj_rans_naca0012_sst.test_vals_aarch64 = [-2.221848, -0.502430, 0.182000, -0.000018]
discadj_rans_naca0012_sst.test_vals = [-2.274779, -0.278440, -2.255500, -0.003160]
discadj_rans_naca0012_sst.test_vals_aarch64 = [-2.274779, -0.278440, -2.255500, -0.003160]
test_list.append(discadj_rans_naca0012_sst)

#######################################
Expand Down Expand Up @@ -163,7 +163,7 @@ def main():
discadj_cylinder.cfg_dir = "disc_adj_rans/cylinder"
discadj_cylinder.cfg_file = "cylinder.cfg"
discadj_cylinder.test_iter = 9
discadj_cylinder.test_vals = [3.746909, -1.544883, -0.008321, 0.000014] #last 4 columns
discadj_cylinder.test_vals = [1.639372, -2.834295, -0.009538, 0.000020] #last 4 columns
discadj_cylinder.unsteady = True
test_list.append(discadj_cylinder)

Expand All @@ -176,7 +176,7 @@ def main():
discadj_cylinder.cfg_dir = "disc_adj_rans/cylinder"
discadj_cylinder.cfg_file = "cylinder_Windowing_AD.cfg"
discadj_cylinder.test_iter = 9
discadj_cylinder.test_vals = [3.004406] #last column
discadj_cylinder.test_vals = [2.183366] #last column
discadj_cylinder.unsteady = True
test_list.append(discadj_cylinder)

Expand All @@ -189,7 +189,7 @@ def main():
discadj_cylinder.cfg_dir = "disc_adj_rans/cylinder"
discadj_cylinder.cfg_file = "cylinder_Windowing.cfg"
discadj_cylinder.test_iter = 6
discadj_cylinder.test_vals = [0.202349, -0.000119, 1.899933, -0.000050, 1.067900]
discadj_cylinder.test_vals = [0.238134, -0.000245, 1.926672, -0.000097, 1.062800]
discadj_cylinder.tol = 0.0001
discadj_cylinder.command = TestCase.Command("mpirun -n 2", "SU2_CFD_DIRECTDIFF")
discadj_cylinder.unsteady = True
Expand All @@ -204,7 +204,7 @@ def main():
discadj_DT_1ST_cylinder.cfg_dir = "disc_adj_rans/cylinder_DT_1ST"
discadj_DT_1ST_cylinder.cfg_file = "cylinder.cfg"
discadj_DT_1ST_cylinder.test_iter = 9
discadj_DT_1ST_cylinder.test_vals = [3.698168, -1.607050, -0.002159, 0.000028] #last 4 columns
discadj_DT_1ST_cylinder.test_vals = [1.196413, -3.339027, -0.006212, 0.000020] #last 4 columns
discadj_DT_1ST_cylinder.unsteady = True
test_list.append(discadj_DT_1ST_cylinder)

Expand Down Expand Up @@ -269,7 +269,7 @@ def main():
discadj_fsi.cfg_dir = "disc_adj_fsi"
discadj_fsi.cfg_file = "config.cfg"
discadj_fsi.test_iter = 6
discadj_fsi.test_vals = [6.000000, -1.949946, -3.080711, 0.000440, -1.063100]
discadj_fsi.test_vals = [6.000000, -7.017319, -7.872545, 3.9968e-09, -2.4097e-05]
test_list.append(discadj_fsi)

# Multi physics framework
Expand Down
10 changes: 5 additions & 5 deletions TestCases/serial_regression_AD.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ def main():
discadj_rans_naca0012_sa.cfg_dir = "disc_adj_rans/naca0012"
discadj_rans_naca0012_sa.cfg_file = "turb_NACA0012_sa.cfg"
discadj_rans_naca0012_sa.test_iter = 10
discadj_rans_naca0012_sa.test_vals = [-2.230545, 0.644224, 0.180740, -0.000018, 5.000000, -4.275182, 5.000000, -10.051224]
discadj_rans_naca0012_sa.test_vals = [-2.996976, -0.196055, 0.000004, -0.000000, 5.000000, -3.971736, 5.000000, -10.464337]
test_list.append(discadj_rans_naca0012_sa)

# Adjoint turbulent NACA0012 SST
discadj_rans_naca0012_sst = TestCase('discadj_rans_naca0012_sst')
discadj_rans_naca0012_sst.cfg_dir = "disc_adj_rans/naca0012"
discadj_rans_naca0012_sst.cfg_file = "turb_NACA0012_sst.cfg"
discadj_rans_naca0012_sst.test_iter = 10
discadj_rans_naca0012_sst.test_vals = [-2.221845, -0.491927, 0.182000, -0.000018]
discadj_rans_naca0012_sst.test_vals = [-2.127041, -0.204660, 0.335320, -0.022055]
test_list.append(discadj_rans_naca0012_sst)

#######################################
Expand Down Expand Up @@ -122,7 +122,7 @@ def main():
discadj_cylinder.cfg_dir = "disc_adj_rans/cylinder"
discadj_cylinder.cfg_file = "cylinder.cfg"
discadj_cylinder.test_iter = 9
discadj_cylinder.test_vals = [3.746909, -1.544883, -0.008321, 0.000014]
discadj_cylinder.test_vals = [1.639372, -2.834285, -0.009538, 0.000020]
discadj_cylinder.unsteady = True
test_list.append(discadj_cylinder)

Expand All @@ -135,7 +135,7 @@ def main():
discadj_DT_1ST_cylinder.cfg_dir = "disc_adj_rans/cylinder_DT_1ST"
discadj_DT_1ST_cylinder.cfg_file = "cylinder.cfg"
discadj_DT_1ST_cylinder.test_iter = 9
discadj_DT_1ST_cylinder.test_vals = [3.698168, -1.607050, -0.002159, 0.000028]
discadj_DT_1ST_cylinder.test_vals = [1.196420, -3.339046, -0.006211, 0.000020]
discadj_DT_1ST_cylinder.unsteady = True
test_list.append(discadj_DT_1ST_cylinder)

Expand Down Expand Up @@ -195,7 +195,7 @@ def main():
discadj_fsi.cfg_dir = "disc_adj_fsi"
discadj_fsi.cfg_file = "config.cfg"
discadj_fsi.test_iter = 6
discadj_fsi.test_vals = [6.000000, -1.965877, -3.084381, 0.000440, -1.063100]
discadj_fsi.test_vals = [6.000000, -8.928327, -10.009868, 3.1056e-11, -1.7613e-06]
test_list.append(discadj_fsi)

###################################
Expand Down

0 comments on commit b7035ef

Please sign in to comment.