| 190 | === `U_init_n_domains` (init_n_domains.F90) === |
| 191 | |
| 192 | This routine is used by all local filter algorithms (LSEIK, LETKF). |
| 193 | |
| 194 | The interface for this routine is: |
| 195 | {{{ |
| 196 | SUBROUTINE init_n_domains(step, n_domains_p) |
| 197 | |
| 198 | INTEGER, INTENT(in) :: step ! Current time step |
| 199 | INTEGER, INTENT(out) :: n_domains_p ! number of analysis domains for local model sub-domain |
| 200 | }}} |
| 201 | |
| 202 | The routine is called during the analysis step before the loop over the local analysis domains is entered. |
| 203 | It has to provide the number of local analysis domains. In case of a domain-decomposed model the number of local analysis domain for the model sub-dmain of the calling process has to be initialized. |
| 204 | |
| 205 | Hints: |
| 206 | * As a simple case, if the localization is only performed horizontally, the local analysis domain can be single vertical columns of the model grid. In this case `n_domains_p` is simply the number of vertical columns in the local model sub-domain. |
| 207 | |