Commit f948214
authored
Merge pull request #376 from mvertens/feature/refactor_stream_usage_escomp
major refactor stream of stream usage
### Description of changes
Major refactor of stream usage
### Specific notes
All data mode files across the data components(except for `datm_datamode_gefs_mod.F90 `and `dice_datamode_cplhist_mod.F90`) now have explicit setting of streams rather than using the implicit copy used by `dfields`. Copies that used to be done implicitly using the naming convention assumed by dfields are
now done explictly. This makes it clear what export fields are direct copies and what export fields are
derived fields that have no corresponding stream field.
In each datamode module - there are now two sections in the module variable list: `export (and sometimes import) state pointers` and `stream pointer`.
The following changes have been made throughout the code: `character(*) => character(len=*)`,` trim(subname) => subname` (the latter is done since parameters, e.g. `subname`, don't need trim functions)
The following new routines have been introduced or deleted:
- **dwav**
- dwav_datamode_copyall.F90: new
- **drof**
- drof_datamode_copyall.F90: new
- introduction of new datatype (stream_pointer_type) for multilevel stream pointers
- expanded list of stream fields needed for drof.cplhist and added new functionality (e.g. `drof_datamode_cplhist_mod.F90`) to support this addition.
- **docn**
- combined `docn_datamode_copyall_mod.F90` and `docn_datamode_iaf_mod.F90` into a new file `docn_datamode_sstdata_mod.F90`. The two files `docn_datamode_copyall_mod.F90` and `docn_datamode_iaf_mod.F90` were effectively the same and two different datamodes are not needed since in both cases prescribed SST data was read in. (In addition, docn_datamode_iaf_mod.F90` set pointers to importState data which was never used and not needed).
- ocn_comp_nuopc.F90: the datamode copyall is now sstdata and the datamode iaf is removed
- changed cplhist and multilev_cplhist taxmode from extend to cycle
- **dlnd**
- introduction of new datatype (stream_pointer_type) for multilevel stream pointers
- **dice**
- dice_cplhist_data_mod.F90: still uses dfields since it is used by UFS
- **dglc**
- introduction of new datatype (stream_pointer_type) for multilevel stream pointers
**NOTE**: This PR also provides a new mapfile algorithm as a new option for mapping the streams input to the component model resolution. The new scheme does not have a default but is enabled via adding the following in the appropriate user_nl_XXX_streams where the user needs to fill in the entries in <> below:
<stream_name>:mapalgo = "mapfile:<path to mapping file>
As an example:
`rof.ryf8485_jra:mapalgo="mapfile:/cluster/shared/noresm/inputdata/cpl/cpl6/map_JRA025_to_tnx1v4_e1000r300_170928.nc"`. This new capability enables a significant speedup in stand-alone ocean simulations. See NorESMhub/BLOM#686 (comment).
**NOTE***:
Contributors other than yourself, if any: None
CDEPS Issues Fixed: #377
Are there dependencies on other component PRs (if so list):
Are changes expected to change answers (bfb, different to roundoff, more substantial):
- docn cplhist mode can change answers due to changing taxmode from extend to cycle
Any User Interface Changes (namelist or namelist defaults changes):
Testing performed (will describe the noresm testing here)
- aux_cdeps_noresm:
- compared to baseline cdeps1.0.87_noresm_v1 - all passed (#377) and generated new baseline cdeps1.0.87_noresm_v2)
- prealpha_noresm
- compared to noresm3_0_beta09 - the only difference is SMS_Lm13.f19_f19_mtn14.I1850Clm50SpG.betzy_intel where atmImp_Faxa_ndep1 and atmImp_Faxa_ndep2 are different due to new new tag cdeps1.0.87_noresm_v2.
Hashes used for testing: noresm3_0_beta09 plus this CDEPS branch
Also tested with CESM prealpha tests and a few additional tests (see #376 for details.)54 files changed
Lines changed: 2612 additions & 2042 deletions
File tree
- cime_config
- datm
- cime_config
- dglc
- cime_config/testdefs
- dice
- dlnd
- docn
- cime_config
- doc/source
- drof
- cime_config
- testdefs
- testmods_dirs/drof/cplhist_noresm
- dshr
- dwav
- streams
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
| 348 | + | |
348 | 349 | | |
349 | 350 | | |
350 | 351 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 105 | + | |
110 | 106 | | |
111 | 107 | | |
112 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
| |||
329 | 326 | | |
330 | 327 | | |
331 | 328 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | 329 | | |
346 | 330 | | |
347 | 331 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
65 | 74 | | |
66 | 75 | | |
67 | 76 | | |
| |||
159 | 168 | | |
160 | 169 | | |
161 | 170 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | 171 | | |
188 | 172 | | |
189 | 173 | | |
| |||
205 | 189 | | |
206 | 190 | | |
207 | 191 | | |
| 192 | + | |
| 193 | + | |
208 | 194 | | |
209 | 195 | | |
210 | 196 | | |
| |||
223 | 209 | | |
224 | 210 | | |
225 | 211 | | |
| 212 | + | |
| 213 | + | |
226 | 214 | | |
227 | 215 | | |
228 | 216 | | |
229 | | - | |
230 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
231 | 249 | | |
232 | 250 | | |
233 | 251 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
240 | 263 | | |
241 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
242 | 269 | | |
243 | 270 | | |
244 | 271 | | |
| |||
278 | 305 | | |
279 | 306 | | |
280 | 307 | | |
| 308 | + | |
| 309 | + | |
281 | 310 | | |
282 | 311 | | |
283 | 312 | | |
284 | | - | |
285 | | - | |
| 313 | + | |
| 314 | + | |
286 | 315 | | |
287 | 316 | | |
288 | 317 | | |
| |||
291 | 320 | | |
292 | 321 | | |
293 | 322 | | |
| 323 | + | |
| 324 | + | |
294 | 325 | | |
295 | 326 | | |
296 | 327 | | |
| 328 | + | |
297 | 329 | | |
298 | 330 | | |
299 | 331 | | |
| |||
304 | 336 | | |
305 | 337 | | |
306 | 338 | | |
307 | | - | |
| 339 | + | |
308 | 340 | | |
309 | 341 | | |
310 | 342 | | |
| |||
315 | 347 | | |
316 | 348 | | |
317 | 349 | | |
318 | | - | |
| 350 | + | |
319 | 351 | | |
320 | 352 | | |
321 | | - | |
| 353 | + | |
322 | 354 | | |
323 | 355 | | |
324 | 356 | | |
325 | | - | |
| 357 | + | |
326 | 358 | | |
327 | 359 | | |
328 | 360 | | |
329 | 361 | | |
330 | 362 | | |
331 | | - | |
| 363 | + | |
332 | 364 | | |
333 | | - | |
| 365 | + | |
334 | 366 | | |
335 | 367 | | |
336 | 368 | | |
337 | 369 | | |
338 | 370 | | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
343 | 377 | | |
344 | 378 | | |
345 | | - | |
| 379 | + | |
| 380 | + | |
346 | 381 | | |
347 | 382 | | |
348 | 383 | | |
| |||
357 | 392 | | |
358 | 393 | | |
359 | 394 | | |
| 395 | + | |
360 | 396 | | |
| 397 | + | |
361 | 398 | | |
362 | 399 | | |
363 | | - | |
| 400 | + | |
364 | 401 | | |
365 | 402 | | |
366 | 403 | | |
| |||
0 commit comments