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. |
| 23 | The 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. |