[4615] | 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_2_2/ORCHIDEE/src_xml/context_routing_orchidee.xml $ --> |
---|
| 7 | <!-- $Date: 2019-07-05 15:36:20 +0200 (ven. 05 juil. 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="diag_routing" type="one_file" output_freq="1d" append="true" sync_freq="1d" enabled=".TRUE." > |
---|
| 28 | <field_group default_value="9.96921e+36"> |
---|
| 29 | <field field_ref="flow_r" /> |
---|
| 30 | <field field_ref="routing_runoff_r" /> |
---|
| 31 | <field field_ref="routing_runoff" /> |
---|
| 32 | <field field_ref="routing_lakeinflow_r" /> |
---|
| 33 | <field field_ref="routing_coastalflow_r" /> |
---|
| 34 | <field field_ref="routing_riverflow_r" /> |
---|
| 35 | <field field_ref="routing_drainage_r" /> |
---|
| 36 | <field field_ref="routing_drainage" /> |
---|
| 37 | <field field_ref="routing_coastalflow" /> |
---|
| 38 | <field field_ref="routing_riverflow" /> |
---|
| 39 | <field field_ref="routing_lakeinflow" /> |
---|
| 40 | |
---|
| 41 | <field field_ref="routing_fast_reservoir_r" /> |
---|
| 42 | <field field_ref="routing_slow_reservoir_r" /> |
---|
| 43 | <field field_ref="routing_stream_reservoir_r" /> |
---|
| 44 | <field field_ref="routing_hydrographs_r" /> |
---|
| 45 | |
---|
| 46 | <field field_ref="routing_fast_reservoir" /> |
---|
| 47 | <field field_ref="routing_slow_reservoir" /> |
---|
| 48 | <field field_ref="routing_stream_reservoir" /> |
---|
| 49 | |
---|
| 50 | <field field_ref="frac_routing_r" operation="once" /> |
---|
| 51 | <field field_ref="frac_native" operation="once" /> |
---|
| 52 | <field id="routing_contfrac" domain_ref="domain_landpoints" operation="once" /> |
---|
| 53 | <field id="basins_riverflow" axis_ref="basins" operation="instant"/> |
---|
| 54 | <field field_ref="frac_routing_coast_r" operation="once" /> |
---|
| 55 | <field id="routing_weight_coast_r" domain_ref="routing_domain" operation="once" /> |
---|
| 56 | |
---|
| 57 | </field_group> |
---|
| 58 | </file> |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | <file id="routing_start" type="one_file" type="one_file" mode="read" enabled="false" output_freq="1y"> |
---|
| 62 | <field_group operation="instant" domain_ref="routing_domain" default_value="9.96921e+36" freq_offset="1ts"> |
---|
| 63 | <field id="fast_reservoir_start" name="fast_reservoir" /> |
---|
| 64 | <field id="slow_reservoir_start" name="slow_reservoir" /> |
---|
| 65 | <field id="stream_reservoir_start" name="stream_reservoir" /> |
---|
| 66 | </field_group> |
---|
| 67 | </file> |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | <file id="routing_restart" type="one_file" output_freq="1ts" sync_freq="1ts" enabled=".TRUE." > |
---|
| 71 | <field_group operation="once" domain_ref="routing_domain" default_value="9.96921e+36"> |
---|
| 72 | <field id="fast_reservoir_restart" name="fast_reservoir" /> |
---|
| 73 | <field id="slow_reservoir_restart" name="slow_reservoir" /> |
---|
| 74 | <field id="stream_reservoir_restart" name="stream_reservoir" /> |
---|
| 75 | </field_group> |
---|
| 76 | </file> |
---|
| 77 | |
---|
| 78 | </file_definition> |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | <field_definition> |
---|
| 82 | |
---|
| 83 | <field id="trip_update_r" domain_ref="routing_domain" operation="instant"/> |
---|
| 84 | <field id="trip_rp1" field_ref="trip_update_r" domain_ref="routing_domain_expand" read_access="true"/> |
---|
| 85 | |
---|
| 86 | <field id="flow_r" operation="instant" domain_ref="routing_domain" /> |
---|
| 87 | <field id="flow_rp1" field_ref="flow_r" operation="instant" domain_ref="routing_domain_expand" read_access="true"/> |
---|
| 88 | |
---|
| 89 | <field id="routing_runoff" domain_ref="domain_landpoints" operation="instant" /> |
---|
| 90 | <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"/> |
---|
| 91 | |
---|
| 92 | <field id="routing_drainage" domain_ref="domain_landpoints" operation="instant" /> |
---|
| 93 | <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"/> |
---|
| 94 | |
---|
| 95 | <field id="routing_lakeinflow_r" domain_ref="routing_domain" operation="instant" /> |
---|
| 96 | <field id="routing_lakeinflow" field_ref="routing_lakeinflow_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
| 97 | |
---|
| 98 | <field id="routing_coastalflow_r" domain_ref="routing_domain" operation="instant" /> |
---|
| 99 | <field id="routing_coastalflow_temp" field_ref="routing_coastalflow_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
| 100 | <field id="routing_coastalflow" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
| 101 | |
---|
| 102 | <field id="routing_riverflow_r" domain_ref="routing_domain" operation="instant" /> |
---|
| 103 | <field id="routing_riverflow_temp" field_ref="routing_riverflow_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
| 104 | <field id="routing_riverflow" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
| 105 | |
---|
| 106 | <field id="out_flow" domain_ref="domain_landpoints" operation="instant" read_access="true"/> |
---|
| 107 | |
---|
| 108 | <field id="mask_routing_r" domain_ref="routing_domain" operation="instant"/> |
---|
| 109 | <field id="frac_native" field_ref="mask_routing_r" default_value="0" detect_missing_value="true" domain_ref="domain_landpoints" operation="instant" read_access="true"/> |
---|
| 110 | |
---|
| 111 | <field id="mask_native" domain_ref="domain_landpoints" operation="instant" detect_missing_value="true"/> |
---|
| 112 | <field id="frac_routing_r" field_ref="mask_native" default_value="0" detect_missing_value="true" domain_ref="routing_domain_flux" operation="instant" read_access="true"/> |
---|
| 113 | |
---|
| 114 | <field id="mask_native_lake" domain_ref="domain_landpoints" operation="instant" detect_missing_value="true"/> |
---|
| 115 | <field id="frac_routing_lake_r" field_ref="mask_native_lake" default_value="0" detect_missing_value="true" domain_ref="routing_domain_flux" operation="instant" read_access="true"/> |
---|
| 116 | |
---|
| 117 | <field id="mask_native_coast" domain_ref="domain_landpoints" operation="instant" detect_missing_value="true"/> |
---|
| 118 | <field id="frac_routing_coast_r" field_ref="mask_native_coast" default_value="0" detect_missing_value="true" domain_ref="routing_domain_flux" operation="instant" read_access="true"/> |
---|
| 119 | |
---|
| 120 | <field id="fast_reservoir_r" domain_ref="routing_domain" operation="instant" /> |
---|
| 121 | <field id="slow_reservoir_r" domain_ref="routing_domain" operation="instant" /> |
---|
| 122 | <field id="stream_reservoir_r" domain_ref="routing_domain" operation="instant" /> |
---|
| 123 | |
---|
| 124 | |
---|
| 125 | <field id="sum_routing_runoff" field_ref="routing_runoff" domain_ref="_reset_" scalar_ref="domain_landpoints_sum" /> |
---|
| 126 | <field id="sum_routing_drainage" field_ref="routing_drainage" domain_ref="_reset_" scalar_ref="domain_landpoints_sum" /> |
---|
| 127 | <field id="sum_routing_runoff_r" field_ref="routing_runoff_r" domain_ref="_reset_" scalar_ref="routing_domain_sum" /> |
---|
| 128 | <field id="sum_routing_drainage_r" field_ref="routing_drainage_r" domain_ref="_reset_" scalar_ref="routing_domain_sum" /> |
---|
| 129 | |
---|
| 130 | <field id="sum_fast_reservoir_r" field_ref="fast_reservoir_r" domain_ref="_reset_" scalar_ref="routing_domain_sum" /> |
---|
| 131 | <field id="sum_slow_reservoir_r" field_ref="slow_reservoir_r" domain_ref="_reset_" scalar_ref="routing_domain_sum" /> |
---|
| 132 | <field id="sum_stream_reservoir_r" field_ref="stream_reservoir_r" domain_ref="_reset_" scalar_ref="routing_domain_sum" /> |
---|
| 133 | |
---|
| 134 | <field id="water_balance_before" detect_missing_value="true" scalar_ref="domain_landpoints_sum" domain_ref="_reset_" read_access="true" > sum_routing_runoff + sum_routing_drainage + sum_fast_reservoir_r + sum_slow_reservoir_r + sum_stream_reservoir_r</field> |
---|
| 135 | |
---|
| 136 | <field id="sum_routing_fast_reservoir_r" field_ref="routing_fast_reservoir_r" domain_ref="_reset_" scalar_ref="routing_domain_sum" /> |
---|
| 137 | <field id="sum_routing_slow_reservoir_r" field_ref="routing_slow_reservoir_r" domain_ref="_reset_" scalar_ref="routing_domain_sum" /> |
---|
| 138 | <field id="sum_routing_stream_reservoir_r" field_ref="routing_stream_reservoir_r" domain_ref="_reset_" scalar_ref="routing_domain_sum" /> |
---|
| 139 | |
---|
| 140 | <field id="sum_out_flow" field_ref="out_flow" domain_ref="_reset_" scalar_ref="domain_landpoints_sum" /> |
---|
| 141 | |
---|
| 142 | <field id="water_balance_after" scalar_ref="routing_domain_sum" domain_ref="_reset_" read_access="true" > |
---|
| 143 | sum_out_flow+sum_routing_fast_reservoir_r + sum_routing_slow_reservoir_r+sum_routing_stream_reservoir_r |
---|
| 144 | </field> |
---|
| 145 | |
---|
| 146 | <field id="routing_fast_reservoir_r" domain_ref="routing_domain" operation="instant" /> |
---|
| 147 | <field id="routing_slow_reservoir_r" domain_ref="routing_domain" operation="instant" /> |
---|
| 148 | <field id="routing_stream_reservoir_r" domain_ref="routing_domain" operation="instant" /> |
---|
| 149 | |
---|
| 150 | <field id="routing_fast_reservoir" field_ref="routing_fast_reservoir_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
| 151 | <field id="routing_slow_reservoir" field_ref="routing_slow_reservoir_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
| 152 | <field id="routing_stream_reservoir" field_ref="routing_stream_reservoir_r" domain_ref="domain_landpoints_routing" operation="instant" read_access="true"/> |
---|
| 153 | <field id="routing_hydrographs_r" domain_ref="routing_domain" operation="instant" /> |
---|
| 154 | |
---|
| 155 | |
---|
| 156 | </field_definition> |
---|
| 157 | |
---|
| 158 | <domain_definition> |
---|
| 159 | |
---|
| 160 | <domain id="domain_landpoints_routing" domain_ref="domain_landpoints"> |
---|
| 161 | <interpolate_domain renormalize="false" order="1" quantity="true"/> |
---|
| 162 | </domain> |
---|
| 163 | |
---|
| 164 | <domain id="routing_domain" type="rectilinear" data_dim="2"> |
---|
| 165 | <generate_rectilinear_domain bounds_lat_start="90" bounds_lat_end="-90" bounds_lon_start="-180" bounds_lon_end="180"/> |
---|
| 166 | </domain> |
---|
| 167 | |
---|
| 168 | <domain id="routing_domain_quant" domain_ref="routing_domain" > |
---|
| 169 | <interpolate_domain renormalize="false" order="1" quantity="true" /> |
---|
| 170 | </domain> |
---|
| 171 | |
---|
| 172 | <domain id="routing_domain_flux" domain_ref="routing_domain"> |
---|
| 173 | <interpolate_domain renormalize="false" order="1" /> |
---|
| 174 | </domain> |
---|
| 175 | |
---|
| 176 | <domain id="routing_domain_expand" domain_ref="routing_domain" > |
---|
| 177 | <expand_domain type="edge" i_periodic="true" j_periodic="true" /> |
---|
| 178 | </domain> |
---|
| 179 | |
---|
| 180 | </domain_definition> |
---|
| 181 | |
---|
| 182 | <axis_definition> |
---|
| 183 | <axis id="basins" n_glo="200"/> |
---|
| 184 | </axis> |
---|
| 185 | |
---|
| 186 | <scalar_definition> |
---|
| 187 | <scalar id="routing_domain_sum"> |
---|
| 188 | <reduce_domain operation="sum"/> |
---|
| 189 | </scalar> |
---|
| 190 | |
---|
| 191 | <scalar id="domain_landpoints_sum"> |
---|
| 192 | <reduce_domain operation="sum"/> |
---|
| 193 | </scalar> |
---|
| 194 | |
---|
| 195 | </scalar_definition> |
---|
| 196 | |
---|
| 197 | </context> |
---|