wiki:init_n_domains_pdaf

Version 1 (modified by lnerger, 8 years ago) (diff)

--

init_n_domains_pdaf

The page document the user-supplied call-back routine init_n_domains_pdaf.

The routine init_n_domains_pdaf (called U_init_n_domains inside the PDAF core routines) is a call-back routine that has to be provided by the user. This routine is used by all filter algorithms with domain-localization (LSEIK, LETKF, LESTKF) and is independent of the particular algorithm. The routine is called during the analysis step before the loop over the local analysis domains is entered. 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-domain of the calling process has to be initialized.

The interface is the following:

SUBROUTINE init_n_domains_pdaf(step, n_domains_p)

with

  • step : integer, intent(in)
    Current time step
  • n_domains_p: integer, intent(out)
    Number of analysis domains for process-local model sub-domain

Hints:

  • For a full 3-dimensional localization, a local analysis domain can be a single grid point. In this case n_domains_p would be the number of grid points in a process-local sub-domain of the model grid.
  • If the localization is only performed horizontally (a frequent choice with ocean circulation models assimilating satellite data), the local analysis domains can be single vertical columns of the model grid. In this case, n_domains_p is the number of vertical columns in the local model sub-domain.