1 | <!-- =========================================================================================================== --> |
---|
2 | <!-- ORCHIDEE context --> |
---|
3 | <!-- context_routing_orchidee.xml : Configuration file for ORCHIDEE when activating option routing simple --> |
---|
4 | <!-- This file must be included in iodef.xml to be read by XIOS --> |
---|
5 | <!-- --> |
---|
6 | <!-- $HeadURL: svn://forge.ipsl.jussieu.fr/orchidee/branches/ORCHIDEE_Quest/ORCHIDEE/src_xml/context_routing_orchidee.xml $ --> |
---|
7 | <!-- $Date: 2019-07-05 15:36:20 +0200 (Fri, 05 Jul 2019) $ --> |
---|
8 | <!-- $Revision: 6103 $ --> |
---|
9 | <!-- =========================================================================================================== --> |
---|
10 | <context id="orchidee"> |
---|
11 | |
---|
12 | <!-- =========================================================================================================== --> |
---|
13 | <!-- ******************************************** Routing ****************************************************** --> |
---|
14 | <!-- =========================================================================================================== --> |
---|
15 | |
---|
16 | |
---|
17 | <file_definition> |
---|
18 | |
---|
19 | <file name="routing_simple" type="one_file" mode="read" enabled=".TRUE." output_freq="1y"> |
---|
20 | <field id="trip_r" name="trip" domain_ref="routing_domain" default_value="1e20" detect_missing_value="true" operation="instant" freq_offset="1ts" /> |
---|
21 | <field id="trip_extended_r" name="trip_extended" domain_ref="routing_domain" default_value="1e20" detect_missing_value="true" operation="instant" freq_offset="1ts" /> |
---|
22 | <field id="topoind_r" name="topoind" domain_ref="routing_domain" default_value="1e20" detect_missing_value="true" operation="instant" freq_offset="1ts"/> |
---|
23 | <field id="basins_extended_r" name="basins_extended" domain_ref="routing_domain" default_value="1e20" detect_missing_value="true" operation="instant" freq_offset="1ts"/> |
---|
24 | </file> |
---|
25 | |
---|
26 | |
---|
27 | <file name="debug_routing" type="one_file" output_freq="1d" sync_freq="1d" enabled="true" > |
---|
28 | |
---|
29 | <field_group default_value="9.96921e+36" prec="8"> |
---|
30 | <field id="is_coastline" domain_ref="domain_landpoints" operation="once"/> |
---|
31 | <field field_ref="frac_coastline_r" operation="once"/> |
---|
32 | |
---|
33 | <field field_ref="routing_contfrac" operation="once" /> |
---|
34 | <field field_ref="routing_contfrac_r" operation="once" /> |
---|
35 | |
---|
36 | <field field_ref="routing_coastalflow_to_coast_r" operation="instant" /> |
---|
37 | <field field_ref="routing_coastalflow_to_coast" operation="instant" /> |
---|
38 | |
---|
39 | <field field_ref="routing_coastalflow_to_lake_r" operation="instant" /> |
---|
40 | <field field_ref="routing_coastalflow_to_lake" operation="instant" /> |
---|
41 | |
---|
42 | <field field_ref="routing_riverflow_to_coast_r" operation="instant" /> |
---|
43 | <field field_ref="routing_riverflow_to_coast" operation="instant" /> |
---|
44 | |
---|
45 | <field field_ref="routing_riverflow_to_lake_r" operation="instant" /> |
---|
46 | <field field_ref="routing_riverflow_to_lake" operation="instant" /> |
---|
47 | |
---|
48 | <field field_ref="routing_lakeinflow_to_coast_r" operation="instant" /> |
---|
49 | <field field_ref="routing_lakeinflow_to_coast" operation="instant" /> |
---|
50 | |
---|
51 | <field field_ref="routing_lakeinflow_to_lake_r" operation="instant" /> |
---|
52 | <field field_ref="routing_lakeinflow_to_lake" operation="instant" /> |
---|
53 | |
---|
54 | </field_group> |
---|
55 | |
---|
56 | </file> |
---|
57 | |
---|
58 | <file name="diag_routing" type="one_file" output_freq="1d" append="false" sync_freq="1d" enabled="true" > |
---|
59 | <field_group default_value="9.96921e+36" prec="8"> |
---|
60 | <field field_ref="flow_r" /> |
---|
61 | <field field_ref="routing_runoff_r" /> |
---|
62 | <field field_ref="routing_runoff" /> |
---|
63 | <field field_ref="routing_lakeinflow_r" /> |
---|
64 | <field field_ref="routing_coastalflow_r" /> |
---|
65 | <field field_ref="routing_riverflow_r" /> |
---|
66 | <field field_ref="routing_drainage_r" /> |
---|
67 | <field field_ref="routing_drainage" /> |
---|
68 | <field field_ref="routing_coastalflow" /> |
---|
69 | <field field_ref="routing_riverflow" /> |
---|
70 | <field field_ref="routing_lakeinflow" /> |
---|
71 | |
---|
72 | <field field_ref="routing_fast_reservoir_r" /> |
---|
73 | <field field_ref="routing_slow_reservoir_r" /> |
---|
74 | <field field_ref="routing_stream_reservoir_r" /> |
---|
75 | <field field_ref="routing_hydrographs_r" /> |
---|
76 | |
---|
77 | <field field_ref="routing_fast_reservoir" /> |
---|
78 | <field field_ref="routing_slow_reservoir" /> |
---|
79 | <field field_ref="routing_stream_reservoir" /> |
---|
80 | |
---|
81 | <field field_ref="irrig_netereq_r" operation="instant"/> |
---|
82 | <field field_ref="routing_irrigation_r" /> |
---|
83 | <field field_ref="routing_irrigation" /> |
---|
84 | |
---|
85 | <field id="basins_riverflow" axis_ref="basins" operation="instant"/> |
---|
86 | <field field_ref="routing_basins_area" operation="once"/> |
---|
87 | |
---|
88 | |
---|
89 | </field_group> |
---|
90 | |
---|
91 | </file> |
---|
92 | |
---|
93 | <file id="routing_start" type="one_file" type="one_file" mode="read" enabled="false" output_freq="1y"> |
---|
94 | <field_group operation="instant" domain_ref="routing_domain" default_value="9.96921e+36" freq_offset="1ts"> |
---|
95 | <field id="fast_reservoir_start" name="fast_reservoir" /> |
---|
96 | <field id="slow_reservoir_start" name="slow_reservoir" /> |
---|
97 | <field id="stream_reservoir_start" name="stream_reservoir" /> |
---|
98 | </field_group> |
---|
99 | </file> |
---|
100 | |
---|
101 | |
---|
102 | <file id="routing_restart" type="one_file" output_freq="1ts" sync_freq="1ts" enabled=".TRUE." > |
---|
103 | <field_group operation="once" domain_ref="routing_domain" default_value="9.96921e+36"> |
---|
104 | <field id="fast_reservoir_restart" name="fast_reservoir" /> |
---|
105 | <field id="slow_reservoir_restart" name="slow_reservoir" /> |
---|
106 | <field id="stream_reservoir_restart" name="stream_reservoir" /> |
---|
107 | </field_group> |
---|
108 | </file> |
---|
109 | |
---|
110 | </file_definition> |
---|
111 | |
---|
112 | |
---|
113 | <field_definition> |
---|
114 | |
---|
115 | <!-- for routing_para --> |
---|
116 | |
---|
117 | <field id="my_rank" domain_ref="routing_domain" /> |
---|
118 | <field id="global_ranks" field_ref="my_rank" domain_ref="routing_domain_expand" read_access="true" /> |
---|
119 | |
---|
120 | <field id="my_index" domain_ref="routing_domain" /> |
---|
121 | <field id="global_index" field_ref="my_index" domain_ref="routing_domain_expand" read_access="true" /> |
---|
122 | |
---|
123 | |
---|
124 | <!-- for routing_flow_correct_riverflow --> |
---|
125 | |
---|
126 | <field id="routing_contfrac" domain_ref="domain_landpoints" /> |
---|
127 | <field id="routing_contfrac_r" field_ref="routing_contfrac" domain_ref="routing_domain_flux" read_access="true" /> |
---|
128 | |
---|
129 | <field id="trip_ext_r" domain_ref="routing_domain" /> |
---|
130 | <field id="trip_ext_rp1" field_ref="trip_ext_r" domain_ref="routing_domain_expand" read_access="true"/> |
---|
131 | |
---|
132 | <field id="mask_coastline" domain_ref="domain_landpoints" /> |
---|
133 | <field id="frac_coastline_r" field_ref="mask_coastline" domain_ref="routing_domain_flux" read_access="true"/> |
---|
134 | |
---|
135 | <!-----------------------------------------> |
---|
136 | |
---|
137 | <!-- for routing_flow_init_local --> |
---|
138 | |
---|
139 | <field id="trip_update_r" domain_ref="routing_domain" operation="instant"/> |
---|
140 | <field id="trip_rp1" field_ref="trip_update_r" domain_ref="routing_domain_expand" read_access="true"/> |
---|
141 | |
---|
142 | <field id="mask_coastal" domain_ref="domain_landpoints" /> |
---|
143 | <field id="frac_coastal_r" field_ref="mask_coastal" domain_ref="routing_domain_flux" read_access="true"/> |
---|
144 | |
---|
145 | <field id="mask_lake" domain_ref="domain_landpoints" /> |
---|
146 | <field id="frac_lake_r" field_ref="mask_lake" domain_ref="routing_domain_flux" read_access="true"/> |
---|
147 | |
---|
148 | <field id="routing_mask_r" domain_ref="routing_domain" operation="once" /> |
---|
149 | <field id="frac_routing" field_ref="routing_mask_r" domain_ref="domain_landpoints_routing_flux" read_access="true"/> |
---|
150 | |
---|
151 | <field id="routing_coastalflow_to_coast_r" domain_ref="routing_domain" operation="instant" /> |
---|
152 | <field id="routing_coastalflow_to_coast" field_ref="routing_coastalflow_to_coast_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
153 | |
---|
154 | <field id="routing_coastalflow_to_lake_r" domain_ref="routing_domain" operation="instant" /> |
---|
155 | <field id="routing_coastalflow_to_lake" field_ref="routing_coastalflow_to_lake_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
156 | |
---|
157 | <field id="routing_riverflow_to_coast_r" domain_ref="routing_domain" operation="instant" /> |
---|
158 | <field id="routing_riverflow_to_coast" field_ref="routing_riverflow_to_coast_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
159 | |
---|
160 | <field id="routing_riverflow_to_lake_r" domain_ref="routing_domain" operation="instant" /> |
---|
161 | <field id="routing_riverflow_to_lake" field_ref="routing_riverflow_to_lake_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
162 | |
---|
163 | <field id="routing_lakeinflow_to_coast_r" domain_ref="routing_domain" operation="instant" /> |
---|
164 | <field id="routing_lakeinflow_to_coast" field_ref="routing_lakeinflow_to_coast_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
165 | |
---|
166 | <field id="routing_lakeinflow_to_lake_r" domain_ref="routing_domain" operation="instant" /> |
---|
167 | <field id="routing_lakeinflow_to_lake" field_ref="routing_lakeinflow_to_lake_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
168 | |
---|
169 | <!-- for compute_basins_area --> |
---|
170 | |
---|
171 | <field id="routing_basins_area" domain_ref="routing_domain" operation="instant" /> |
---|
172 | |
---|
173 | <!-----------------------------------------> |
---|
174 | |
---|
175 | <!-- for routing_flow_main --> |
---|
176 | |
---|
177 | <field id="flow_r" operation="instant" domain_ref="routing_domain" /> |
---|
178 | <field id="flow_rp1" field_ref="flow_r" operation="instant" domain_ref="routing_domain_expand" read_access="true"/> |
---|
179 | |
---|
180 | |
---|
181 | <field id="routing_runoff" domain_ref="domain_landpoints" operation="instant" /> |
---|
182 | <field id="routing_runoff_r" default_value="0" detect_missing_value="true" field_ref="routing_runoff" domain_ref="routing_domain_quant" operation="instant" read_access="true"/> |
---|
183 | |
---|
184 | <field id="routing_drainage" domain_ref="domain_landpoints" operation="instant" /> |
---|
185 | <field id="routing_drainage_r" default_value="0" detect_missing_value="true" field_ref="routing_drainage" domain_ref="routing_domain_quant" operation="instant" read_access="true"/> |
---|
186 | |
---|
187 | <field id="routing_coastalflow_to_coast_r" domain_ref="routing_domain" operation="instant" /> |
---|
188 | <field id="routing_coastalflow_to_coast" field_ref="routing_coastalflow_to_coast_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
189 | |
---|
190 | <field id="routing_coastalflow_to_lake_r" domain_ref="routing_domain" operation="instant" /> |
---|
191 | <field id="routing_coastalflow_to_lake" field_ref="routing_coastalflow_to_lake_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
192 | |
---|
193 | <field id="routing_riverflow_to_coast_r" domain_ref="routing_domain" operation="instant" /> |
---|
194 | <field id="routing_riverflow_to_coast" field_ref="routing_riverflow_to_coast_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
195 | |
---|
196 | <field id="routing_riverflow_to_lake_r" domain_ref="routing_domain" operation="instant" /> |
---|
197 | <field id="routing_riverflow_to_lake" field_ref="routing_riverflow_to_lake_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
198 | |
---|
199 | <field id="routing_lakeinflow_to_coast_r" domain_ref="routing_domain" operation="instant" /> |
---|
200 | <field id="routing_lakeinflow_to_coast" field_ref="routing_lakeinflow_to_coast_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
201 | |
---|
202 | <field id="routing_lakeinflow_to_lake_r" domain_ref="routing_domain" operation="instant" /> |
---|
203 | <field id="routing_lakeinflow_to_lake" field_ref="routing_lakeinflow_to_lake_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
204 | |
---|
205 | |
---|
206 | <!-- diag routing_flow_main --> |
---|
207 | |
---|
208 | <field id="out_flow" domain_ref="domain_landpoints" operation="instant" read_access="true"/> |
---|
209 | |
---|
210 | <field id="routing_fast_reservoir_r" domain_ref="routing_domain" operation="instant" /> |
---|
211 | <field id="routing_slow_reservoir_r" domain_ref="routing_domain" operation="instant" /> |
---|
212 | <field id="routing_stream_reservoir_r" domain_ref="routing_domain" operation="instant" /> |
---|
213 | |
---|
214 | <field id="routing_fast_reservoir" field_ref="routing_fast_reservoir_r" domain_ref="domain_landpoints_routing" operation="instant" /> |
---|
215 | <field id="routing_slow_reservoir" field_ref="routing_slow_reservoir_r" domain_ref="domain_landpoints_routing" operation="instant" /> |
---|
216 | <field id="routing_stream_reservoir" field_ref="routing_stream_reservoir_r" domain_ref="domain_landpoints_routing" operation="instant" /> |
---|
217 | <field id="routing_hydrographs_r" domain_ref="routing_domain" operation="instant" /> |
---|
218 | |
---|
219 | <field id="routing_lakeinflow_r" domain_ref="routing_domain" operation="instant" /> |
---|
220 | <field id="routing_lakeinflow" domain_ref="domain_landpoints" operation="instant" /> |
---|
221 | |
---|
222 | <field id="routing_coastalflow_r" domain_ref="routing_domain" operation="instant" /> |
---|
223 | <field id="routing_coastalflow" domain_ref="domain_landpoints" operation="instant" /> |
---|
224 | |
---|
225 | <field id="routing_riverflow_r" domain_ref="routing_domain" operation="instant" /> |
---|
226 | <field id="routing_riverflow" domain_ref="domain_landpoints" operation="instant" /> |
---|
227 | </field_definition> |
---|
228 | |
---|
229 | <domain_definition> |
---|
230 | |
---|
231 | <domain id="domain_landpoints_routing" domain_ref="domain_landpoints"> |
---|
232 | <interpolate_domain renormalize="false" order="1" quantity="true"/> |
---|
233 | </domain> |
---|
234 | |
---|
235 | <domain id="domain_landpoints_routing_flux" domain_ref="domain_landpoints"> |
---|
236 | <interpolate_domain renormalize="false" order="1" quantity="false"/> |
---|
237 | </domain> |
---|
238 | |
---|
239 | <domain id="routing_domain" type="rectilinear" data_dim="2"> |
---|
240 | <generate_rectilinear_domain bounds_lat_start="90" bounds_lat_end="-90" bounds_lon_start="-180" bounds_lon_end="180"/> |
---|
241 | </domain> |
---|
242 | |
---|
243 | <domain id="routing_domain_quant" domain_ref="routing_domain" > |
---|
244 | <interpolate_domain renormalize="false" order="1" quantity="true" /> |
---|
245 | </domain> |
---|
246 | |
---|
247 | <domain id="routing_domain_flux" domain_ref="routing_domain"> |
---|
248 | <interpolate_domain renormalize="false" order="1" /> |
---|
249 | </domain> |
---|
250 | |
---|
251 | <domain id="routing_domain_expand" domain_ref="routing_domain" > |
---|
252 | <expand_domain type="edge" i_periodic="true" j_periodic="true" /> |
---|
253 | </domain> |
---|
254 | |
---|
255 | <domain id="routing_from_domain_expand_r" domain_ref="routing_domain_flux" > |
---|
256 | <expand_domain type="edge" i_periodic="true" j_periodic="true" /> |
---|
257 | </domain> |
---|
258 | |
---|
259 | </domain_definition> |
---|
260 | |
---|
261 | <axis_definition> |
---|
262 | <axis id="basins" n_glo="200"/> |
---|
263 | </axis> |
---|
264 | |
---|
265 | <scalar_definition> |
---|
266 | |
---|
267 | </scalar_definition> |
---|
268 | |
---|
269 | |
---|
270 | <!-- Definition for irrigation ---> |
---|
271 | |
---|
272 | <field_definition> |
---|
273 | |
---|
274 | <field id="irrig_netereq" domain_ref="domain_landpoints" operation="instant"/> |
---|
275 | <field id="irrig_netereq_r" field_ref="irrig_netereq" domain_ref="routing_domain_flux" read_access="true" default_value="0." operation="instant"/> |
---|
276 | |
---|
277 | <field id="fraction_aeirrig_sw" domain_ref="domain_landpoints" operation="instant"/> |
---|
278 | <field id="fraction_aeirrig_sw_r" field_ref="fraction_aeirrig_sw" domain_ref="routing_domain_flux" read_access="true" default_value="0." operation="instant"/> |
---|
279 | |
---|
280 | <field id="routing_irrigation_r" domain_ref="routing_domain" operation="instant"/> |
---|
281 | <field id="routing_irrigation" field_ref="routing_irrigation_r" domain_ref="domain_landpoints_routing" read_access="true" operation="instant"/> |
---|
282 | |
---|
283 | </field_definition> |
---|
284 | |
---|
285 | |
---|
286 | </context> |
---|