Changes between Initial Version and Version 1 of PDAF3_init_forecast


Ignore:
Timestamp:
Mar 6, 2026, 9:43:35 AM (28 hours ago)
Author:
lnerger
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PDAF3_init_forecast

    v1 v1  
     1= PDAF3_init_forecast =
     2
     3This page documents the routine `PDAF3_init_forecast` of PDAF. The routine was introduced with PDAF V3.0 as a replacement of `PDAF_get_state` using in PDAF2, with a reduced number of arguments.
     4
     5The routine `PDAF3_init_forecast` has to be called once at the end of the initialization of PDAF. Usually, the call will be part of the routine `init_pdaf` that was discussed on the [InitPdaf page on initializing PDAF].
     6
     7The routine has the purpose to initialize the model fields to be propagated from the array holding the ensemble states. In addition, the routine initializes the information on how many time steps have to be performed in the upcoming forecast phase the information, and an exit flag indicating whether further model integrations have to be computed. These variables are used internally in PDAF and can be retrieved by the user by calling [wiki:PDAF_get_fcst_info].
     8
     9The interface is the following:
     10{{{
     11  SUBROUTINE PDAF3_init_forecast(U_next_observation, U_distribute_state, &
     12                            U_prepoststep, status)
     13}}}
     14with the following arguments:
     15 * `U_next_observation`: The name of a user supplied routine that initializes the variables `nsteps`, `timenow`, and `doexit`
     16 * `U_distribute_state`: The name of a user supplied routine that initializes the model fields from the array holding the ensemble of model state vectors
     17 * `U_prepoststep`: The name of a user supplied routine that is called before and after the analysis step. Here the user has the possibility to access the state ensemble and can e.g. compute estimated variances or can write the ensemble states the state estimate into files.
     18 * `status`: The integer status flag. It is zero, if the routine is exited without errors.
     19
     20The specifications of the user-supplied routines (`U_next_observation`, `U_distribute_state`, `U_prepoststep`) are documented on the page on [InsertAnalysisStep inserting the analysis step].