Skip to content

Commit a90fa10

Browse files
committed
add test case for builtin models
1 parent ffbcdd9 commit a90fa10

File tree

1 file changed

+126
-0
lines changed

1 file changed

+126
-0
lines changed

testcases/fabm-builtin.yaml

+126
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
instances:
2+
tracer:
3+
model: tracer
4+
interior_constant:
5+
model: interior_constant
6+
parameters:
7+
value: 1.0
8+
horizontal_constant:
9+
model: horizontal_constant
10+
parameters:
11+
value: 1.0
12+
surface_constant:
13+
model: horizontal_constant
14+
parameters:
15+
value: 1.0
16+
bottom_constant:
17+
model: horizontal_constant
18+
parameters:
19+
value: 1.0
20+
global_constant:
21+
model: global_constant
22+
parameters:
23+
value: 1.0
24+
interior_sum_empty:
25+
model: weighted_sum
26+
parameters:
27+
n: 0
28+
interior_sum_1term:
29+
model: weighted_sum
30+
parameters:
31+
n: 1
32+
coupling:
33+
term1: interior_constant/data
34+
interior_sum_nterms:
35+
model: weighted_sum
36+
parameters:
37+
n: 2
38+
coupling:
39+
term1: tracer/c
40+
term2: interior_constant/data
41+
interior_sum_1term_scaled:
42+
model: weighted_sum
43+
parameters:
44+
n: 1
45+
weight1: 2.0
46+
coupling:
47+
term1: interior_constant/data
48+
interior_sum_nterm_scaled:
49+
model: weighted_sum
50+
parameters:
51+
n: 2
52+
weight1: 1.0
53+
weight2: 2.0
54+
coupling:
55+
term1: tracer/c
56+
term2: interior_constant/data
57+
horizontal_sum_empty:
58+
model: horizontal_weighted_sum
59+
parameters:
60+
n: 0
61+
horizontal_sum_1term:
62+
model: horizontal_weighted_sum
63+
parameters:
64+
n: 1
65+
coupling:
66+
term1: horizontal_constant/data
67+
horizontal_sum_nterms:
68+
model: horizontal_weighted_sum
69+
parameters:
70+
n: 3
71+
coupling:
72+
term1: horizontal_constant/data
73+
term2: surface_constant/data
74+
term3: bottom_constant/data
75+
horizontal_sum_1term_scaled:
76+
model: horizontal_weighted_sum
77+
parameters:
78+
n: 1
79+
weight1: 2.0
80+
coupling:
81+
term1: horizontal_constant/data
82+
horizontal_sum_nterms_scaled:
83+
model: horizontal_weighted_sum
84+
parameters:
85+
n: 3
86+
weight1: 1.0
87+
weight2: 2.0
88+
weight3: 3.0
89+
coupling:
90+
term1: horizontal_constant/data
91+
term2: surface_constant/data
92+
term3: bottom_constant/data
93+
bottom_layer:
94+
model: bottom_layer
95+
coupling:
96+
source: tracer/c
97+
surface_layer:
98+
model: surface_layer
99+
coupling:
100+
source: tracer/c
101+
vertical_integral:
102+
model: vertical_integral
103+
coupling:
104+
source: tracer/c
105+
vertical_average:
106+
model: vertical_integral
107+
parameters:
108+
average: true
109+
coupling:
110+
source: tracer/c
111+
bounded_vertical_integral:
112+
model: bounded_vertical_integral
113+
parameters:
114+
minimum_depth: 10.0
115+
maximum_depth: 20.0
116+
coupling:
117+
source: tracer/c
118+
bounded_vertical_average:
119+
model: bounded_vertical_integral
120+
parameters:
121+
average: true
122+
minimum_depth: 10.0
123+
maximum_depth: 20.0
124+
coupling:
125+
source: tracer/c
126+

0 commit comments

Comments
 (0)