Skip to content

Commit a7f4e92

Browse files
committed
chaged tests to remove numerical noise, remove unused lines, add name to authors
1 parent 0396de8 commit a7f4e92

5 files changed

Lines changed: 9 additions & 14 deletions

File tree

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Eduardo Molina
7171
Edwin van der Weide
7272
Ethan Alan Hereth
7373
Florian Dittmann
74+
Filip Hahs
7475
Francesco Poli
7576
Francisco D. Palacios
7677
Gaurav Bansal

TestCases/hybrid_regression.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,16 +436,16 @@ def main():
436436
cavity.cfg_dir = "moving_wall/cavity"
437437
cavity.cfg_file = "lam_cavity.cfg"
438438
cavity.test_iter = 25
439-
cavity.test_vals = [-5.627934, -0.164469, 0.052000, 2.547063]
439+
cavity.test_vals = [-5.627868, -0.164404, 0.053310, 2.545839]
440440
test_list.append(cavity)
441441

442442
# Spinning cylinder
443443
spinning_cylinder = TestCase('spinning_cylinder')
444444
spinning_cylinder.cfg_dir = "moving_wall/spinning_cylinder"
445445
spinning_cylinder.cfg_file = "spinning_cylinder.cfg"
446446
spinning_cylinder.test_iter = 25
447-
spinning_cylinder.test_vals = [-8.001291, -2.607959, 1.501321, 1.488559]
448-
spinning_cylinder.test_vals_aarch64 = [-8.001291, -2.607959, 1.501321, 1.488559]
447+
spinning_cylinder.test_vals = [-8.006541, -2.609759, 1.495662, 1.486341]
448+
spinning_cylinder.test_vals_aarch64 = [-8.006541, -2.609759, 1.495662, 1.486341]
449449
test_list.append(spinning_cylinder)
450450

451451
######################################

TestCases/parallel_regression.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,15 +915,15 @@ def main():
915915
cavity.cfg_dir = "moving_wall/cavity"
916916
cavity.cfg_file = "lam_cavity.cfg"
917917
cavity.test_iter = 25
918-
cavity.test_vals = [-5.611007, -0.146826, 1.113206, 1.491678]
918+
cavity.test_vals = [-5.610928, -0.146749, 1.114461, 1.490381]
919919
test_list.append(cavity)
920920

921921
# Spinning cylinder
922922
spinning_cylinder = TestCase('spinning_cylinder')
923923
spinning_cylinder.cfg_dir = "moving_wall/spinning_cylinder"
924924
spinning_cylinder.cfg_file = "spinning_cylinder.cfg"
925925
spinning_cylinder.test_iter = 25
926-
spinning_cylinder.test_vals = [-7.802803, -2.362844, 1.687705, 1.519676]
926+
spinning_cylinder.test_vals = [-7.806016, -2.364954, 1.683365, 1.517059]
927927
test_list.append(spinning_cylinder)
928928

929929
######################################

TestCases/py_wrapper/rotating_cylinder/run.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
import pysu2 # imports the SU2 wrapped module
2-
from math import *
32
from mpi4py import MPI
43
import numpy as np
54

65
comm = MPI.COMM_WORLD
76
rank = comm.Get_rank()
8-
ad_com = MPI.COMM_WORLD
9-
rank_ad = ad_com.Get_rank()
10-
n_of_steps = 10
11-
rotation_vector = np.zeros(n_of_steps)+20
12-
rotation_vector[5:9] = -rotation_vector[5:9]
13-
7+
rotation_vector = np.linspace(0,20,10)
148
SU2Driver = pysu2.CSinglezoneDriver("spinning_cylinder.cfg",1, comm)
159

1610
for i, rate in enumerate(rotation_vector):

TestCases/serial_regression.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,15 +750,15 @@ def main():
750750
cavity.cfg_dir = "moving_wall/cavity"
751751
cavity.cfg_file = "lam_cavity.cfg"
752752
cavity.test_iter = 25
753-
cavity.test_vals = [-5.627934, -0.164470, 0.051972, 2.547039]
753+
cavity.test_vals = [ -5.627868, -0.164405, 0.053283, 2.545817]
754754
test_list.append(cavity)
755755

756756
# Spinning cylinder
757757
spinning_cylinder = TestCase('spinning_cylinder')
758758
spinning_cylinder.cfg_dir = "moving_wall/spinning_cylinder"
759759
spinning_cylinder.cfg_file = "spinning_cylinder.cfg"
760760
spinning_cylinder.test_iter = 25
761-
spinning_cylinder.test_vals = [-7.889994, -2.469385, 1.708162, 1.670039]
761+
spinning_cylinder.test_vals = [-7.892807, -2.467378, 1.702819, 1.669208]
762762
test_list.append(spinning_cylinder)
763763

764764
######################################

0 commit comments

Comments
 (0)