Skip to content

Commit 0fc92f6

Browse files
committed
TESTS: add separate tests for IPHYS=0 and CY49R1 configuration
1 parent 854c92f commit 0fc92f6

3 files changed

+143
-20
lines changed

tests/CMakeLists.txt

+7-3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ ecwam_add_test( ${PROJECT_NAME}_test_etopo1_oper_an_fc_O48 CONFIG etopo1_oper_an
2222
ecwam_add_test( ${PROJECT_NAME}_test_etopo1_oper_an_fc_O48 CONFIG etopo1_oper_an_fc_O48.yml MPI 4 OMP 1 )
2323
ecwam_add_test( ${PROJECT_NAME}_test_etopo1_oper_an_fc_O48 CONFIG etopo1_oper_an_fc_O48.yml MPI 1 OMP 4 )
2424

25-
ecwam_add_test( ${PROJECT_NAME}_test_etopo1_oper_an_fc_O48_iphys_0 CONFIG etopo1_oper_an_fc_O48.yml )
26-
ecwam_add_test( ${PROJECT_NAME}_test_etopo1_oper_an_fc_O48_iphys_0 CONFIG etopo1_oper_an_fc_O48.yml MPI 4 OMP 1 )
27-
ecwam_add_test( ${PROJECT_NAME}_test_etopo1_oper_an_fc_O48_iphys_0 CONFIG etopo1_oper_an_fc_O48.yml MPI 1 OMP 4 )
25+
ecwam_add_test( ${PROJECT_NAME}_test_etopo1_oper_an_fc_O48_iphys_0 CONFIG etopo1_oper_an_fc_O48_iphys_0.yml )
26+
ecwam_add_test( ${PROJECT_NAME}_test_etopo1_oper_an_fc_O48_iphys_0 CONFIG etopo1_oper_an_fc_O48_iphys_0.yml MPI 4 OMP 1 )
27+
ecwam_add_test( ${PROJECT_NAME}_test_etopo1_oper_an_fc_O48_iphys_0 CONFIG etopo1_oper_an_fc_O48_iphys_0.yml MPI 1 OMP 4 )
28+
29+
ecwam_add_test( ${PROJECT_NAME}_test_etopo1_oper_an_fc_O48_cy49r1 CONFIG etopo1_oper_an_fc_O48_cy49r1.yml )
30+
ecwam_add_test( ${PROJECT_NAME}_test_etopo1_oper_an_fc_O48_cy49r1 CONFIG etopo1_oper_an_fc_O48_cy49r1.yml MPI 4 OMP 1 )
31+
ecwam_add_test( ${PROJECT_NAME}_test_etopo1_oper_an_fc_O48_cy49r1 CONFIG etopo1_oper_an_fc_O48_cy49r1.yml MPI 1 OMP 4 )
+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
grid: O48
2+
directions: 12
3+
frequencies: 25
4+
bathymetry: ETOPO1
5+
6+
advection:
7+
timestep: 900
8+
physics:
9+
timestep: 900
10+
11+
analysis.begin: 2022-12-31 12:00:00
12+
analysis.end: 2023-01-01 00:00:00
13+
forecast.begin: 2023-01-01 00:00:00
14+
forecast.end: 2023-01-01 06:00:00
15+
16+
begin: ${analysis.begin}
17+
end: ${forecast.end}
18+
19+
nproma: 32
20+
llgcbz0: T
21+
llnormagam: T
22+
23+
forcings:
24+
file: data/forcings/oper_an_12h_fc_2023010100_36h_O48.grib
25+
26+
at:
27+
- begin: ${analysis.begin}
28+
end: ${analysis.end}
29+
timestep: 06:00
30+
- begin: ${forecast.begin}
31+
end: ${forecast.end}
32+
timestep: 01:00
33+
34+
output:
35+
fields:
36+
name:
37+
- swh # Significant height of combined wind waves and swell
38+
- mwd # Mean wave direction
39+
- mwp # Mean wave period
40+
- pp1d # Peak wave period
41+
- dwi # 10 metre wind direction
42+
- cdww # Coefficient of drag with waves
43+
- wind # 10 metre wind speed
44+
format: grib # (default : grib) or binary
45+
at:
46+
- timestep: 01:00
47+
48+
restart:
49+
format: binary # (default : binary) or grib
50+
at:
51+
- time: ${end}
52+
53+
54+
validation:
55+
56+
double_precision:
57+
58+
# initial analysis time
59+
- name: swh
60+
time: 2022-12-31 12:00:00
61+
average: 0.1337362277770183E+01
62+
relative_tolerance: 1.e-14
63+
hashes: ['0x3FF565D5FCDED500']
64+
65+
# initial forecast time
66+
- name: swh
67+
time: 2023-01-01 00:00:00
68+
average: 0.1549635389842900E+01
69+
relative_tolerance: 1.e-14
70+
hashes: ['0x3FF8CB4E7A81976A']
71+
72+
# 6h into forcast
73+
- name: swh
74+
time: 2023-01-01 06:00:00
75+
average: 0.1632535578077486E+01
76+
relative_tolerance: 1.e-14
77+
hashes: ['0x3FFA1EDDA056635D']
78+
- name: swh
79+
time: 2023-01-01 06:00:00
80+
minimum: 0.1923940811633541E-01
81+
relative_tolerance: 1.e-14
82+
hashes: ['0x3F93B37ED29DC143']
83+
- name: swh
84+
time: 2023-01-01 06:00:00
85+
maximum: 0.6803317128898797E+01
86+
relative_tolerance: 1.e-14
87+
hashes: ['0x401B3698C3F3BF70']
88+
89+
single_precision:
90+
91+
# initial analysis time
92+
- name: swh
93+
time: 2022-12-31 12:00:00
94+
average: 0.1337408304214478E+01
95+
relative_tolerance: 1.e-6
96+
hashes: ['0x3FF5660640000000']
97+
98+
# initial forecast time
99+
- name: swh
100+
time: 2023-01-01 00:00:00
101+
average: 0.1549675583839417E+01
102+
relative_tolerance: 1.e-6
103+
hashes: ['0x3FF8CB78A0000000']
104+
105+
# 6h into forcast
106+
- name: swh
107+
time: 2023-01-01 06:00:00
108+
average: 0.1632507562637329E+01
109+
relative_tolerance: 1.e-6
110+
hashes: ['0x3FFA1EC040000000']
111+
- name: swh
112+
time: 2023-01-01 06:00:00
113+
minimum: 0.1923941448330879E-01
114+
relative_tolerance: 1.e-6
115+
hashes: ['0x3F93B37F40000000']
116+
- name: swh
117+
time: 2023-01-01 06:00:00
118+
maximum: 0.6803315162658691E+01
119+
relative_tolerance: 1.e-6
120+
hashes: ['0x401B369840000000']

tests/etopo1_oper_an_fc_O48_iphys_0.yml

+16-17
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ end: ${forecast.end}
1818

1919
nproma: 24
2020
iphys: 0
21-
llgcbz0: T
2221

2322
forcings:
2423
file: data/forcings/oper_an_12h_fc_2023010100_36h_O48.grib
@@ -65,26 +64,26 @@ validation:
6564
# initial forecast time
6665
- name: swh
6766
time: 2023-01-01 00:00:00
68-
average: 0.1502963828906638E+01
67+
average: 0.1490254256202220E+01
6968
relative_tolerance: 1.e-14
70-
hashes: ['0x3FF80C23CCC39966']
69+
hashes: ['0x3FF7D814D8D1D03D']
7170

7271
# 6h into forcast
7372
- name: swh
7473
time: 2023-01-01 06:00:00
75-
average: 0.1563171263196180E+01
74+
average: 0.1549565412792532E+01
7675
relative_tolerance: 1.e-14
77-
hashes: ['0x3FF902BFDED797F8']
76+
hashes: ['0x3FF8CB051A2F4E7F']
7877
- name: swh
7978
time: 2023-01-01 06:00:00
80-
minimum: 0.1778555863566463E-01
79+
minimum: 0.2299719388056846E-01
8180
relative_tolerance: 1.e-14
82-
hashes: ['0x3F923660A2B99ED6']
81+
hashes: ['0x3F978C938E779DCC']
8382
- name: swh
8483
time: 2023-01-01 06:00:00
85-
maximum: 0.7659061909985634E+01
84+
maximum: 0.7301171333479556E+01
8685
relative_tolerance: 1.e-14
87-
hashes: ['0x401EA2E12015B5DB']
86+
hashes: ['0x401D3466420F264D']
8887

8988
single_precision:
9089

@@ -98,23 +97,23 @@ validation:
9897
# initial forecast time
9998
- name: swh
10099
time: 2023-01-01 00:00:00
101-
average: 0.1502959609031677E+01
100+
average: 0.1490258693695068E+01
102101
relative_tolerance: 1.e-6
103-
hashes: ['0x3FF80C1F60000000']
102+
hashes: ['0x3FF7D81980000000']
104103

105104
# 6h into forcast
106105
- name: swh
107106
time: 2023-01-01 06:00:00
108-
average: 0.1563124537467957E+01
107+
average: 0.1549525499343872E+01
109108
relative_tolerance: 1.e-6
110-
hashes: ['0x3FF9028EE0000000']
109+
hashes: ['0x3FF8CADB40000000']
111110
- name: swh
112111
time: 2023-01-01 06:00:00
113-
minimum: 0.1778554916381836E-01
112+
minimum: 0.2299719676375389E-01
114113
relative_tolerance: 1.e-6
115-
hashes: ['0x3F92366000000000']
114+
hashes: ['0x3F978C93C0000000']
116115
- name: swh
117116
time: 2023-01-01 06:00:00
118-
maximum: 0.7659064292907715E+01
117+
maximum: 0.7301169872283936E+01
119118
relative_tolerance: 1.e-6
120-
hashes: ['0x401EA2E1C0000000']
119+
hashes: ['0x401D3465E0000000']

0 commit comments

Comments
 (0)