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. |
| 23 | The initialization of PDAF is done in the subroutine `init_pdaf`. This routine is called from the model code and sets all variables required for the initialization. Then the subroutine `PDAF_init` is called, which performs the actual internal 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. |