Changes between Version 68 and Version 69 of InitPdaf


Ignore:
Timestamp:
May 23, 2025, 9:07:37 AM (8 weeks ago)
Author:
lnerger
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InitPdaf

    v68 v69  
    2121The PDAF release provides example code for the online mode in `tutorial/online_2D_parallelmodel` and `tutorial/online_2D_serialmodel`. We refer to these codes to use it as a basis.
    2222
    23 The actual initialization of PDAF is done in the subroutine `PDAF_init`. This routine sets the internal parameters for the data assimilation, chooses the data assimilation method, allocates the internal ensemble array, and initializes the ensemble. The subroutine `init_pdaf`, which is called from the model code, initializes all variables required for the call to `PDAF_init`. By using `init_pdaf`, only a single additional subroutine call has to be inserted to the model source code for the initialization. The file `templates/online/init_pdaf.F90` provides a commented template for this routine, which can be used as the basis of the implementation.
     23The calls to PDAF for the initialization are done in the subroutine `init_pdaf`. This routine is called from the model code and initializes all variables required for the call to `PDAF_init`, which then performs the actual initialization of PDAF. Thus, it sets the internal parameters for the data assimilation, chooses the data assimilation method, allocates the internal ensemble array, and initializes the ensemble. By using `init_pdaf`, only a single additional subroutine call has to be inserted to the model source code for the initialization. The file `templates/online/init_pdaf.F90` provides a commented template for this routine, which can be used as the basis of the implementation.
    2424
    2525`PDAF_init` itself calls a user-supplied call-back routine to initialize the ensemble of model states. In the example and templates, this routine can be found in `init_ens_pdaf.F90`.