Changes between Version 10 and Version 11 of ImplementAnalysisseek
- Timestamp:
- May 5, 2014, 1:58:37 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ImplementAnalysisseek
v10 v11 11 11 <li><a href="ImplementationofAnalysisStep">Implementation of the analysis step</a></li> 12 12 <ol> 13 <li><a href="ImplementAnalysisestkf">Implementation for ESTKF</a></li> 14 <li><a href="ImplementAnalysislestkf">Implementation for LESTKF</a></li> 15 <li><a href="ImplementAnalysisetkf">Implementation for ETKF</a></li> 16 <li><a href="ImplementAnalysisletkf">Implementation for LETKF</a></li> 13 17 <li><a href="ImplementAnalysisseik">Implementation for SEIK</a></li> 14 18 <li><a href="ImplementAnalysislseik">Implementation for LSEIK</a></li> 15 <li><a href="ImplementAnalysisetkf">Implementation for ETKF</a></li>16 <li><a href="ImplementAnalysisletkf">Implementation for LETKF</a></li>17 19 <li>Implementation for SEEK</li> 18 20 <li><a href="ImplementAnalysisenkf">Implementation for EnKF</a></li> 19 <li><a href="ImplementAnalysisestkf">Implementation for ESTKF</a></li>20 <li><a href="ImplementAnalysislestkf">Implementation for LESTKF</a></li>21 21 </ol> 22 22 <li><a href="AddingMemoryandTimingInformation">Memory and timing information</a></li> … … 29 29 == Overview == 30 30 31 For the analysis step of the SEEK filter different operations related to the observations are needed. These operations are requested by PDAF by calling user-supplied routines. Intentionally, the operations are split into separate routines in order to keep the operations rather elementary. This procedure should simplify the implementation. The names of the required routines are specified in the call to the routine `PDAF_ put_state_seek`. With regard to the parallelization, all these routines are executed by the filter processes (`filterpe=.true.`) only.32 33 For completeness we discuss here all user-supplied routines that are specified in the interface to PDAF_ put_state_seek. Thus, some of the user-supplied routines that are explained on the page explaining the modification of the model code for the ensemble integration for the SEIK filter are repeated here, but specified for the SEEK filter.31 For the analysis step of the SEEK filter different operations related to the observations are needed. These operations are requested by PDAF by calling user-supplied routines. Intentionally, the operations are split into separate routines in order to keep the operations rather elementary. This procedure should simplify the implementation. The names of the required routines are specified in the call to the routine `PDAF_assimilate_seek` for the fully-parallel configuration (or `PDAF_put_state_seek` for the flexible configuration). With regard to the parallelization, all these routines are executed by the filter processes (`filterpe=.true.`) only. 32 33 For completeness we discuss here all user-supplied routines that are specified in the interface to PDAF_assimialte_seek. Thus, some of the user-supplied routines that are explained on the page explaining the modification of the model code for the ensemble integration for the SEIK filter are repeated here, but specified for the SEEK filter. 34 34 35 35 The SEEK filter is very similar to the SEIK filter. In fact, the SEIK filter has been introduced as an interpolated (Pham et al., 1998) version of the SEEK filter. Due to the similarity of both filters, the interface to the user-supplied routines is almost identical. Several of the user-suppplied routines can be identical for SEEK and SEIK. Differences are marked in the text below. The implementation of the SEEK filter follows its original description by Pham et al. (1998) as reviewed by Nerger et al. (Tellus, 2005). 36 36 37 There is no localized variant of the SEEK filter in PDAF. In Nerger et al. (Tellus, 2005), the SEIK filter performed much better than the SEEK filter. Due to this, we focused more on the SEIK filter after this comparison study. For real applications, we recommend using SEIK or ETKF, or their local variants LSEIK or LETKF.37 There is no localized variant of the SEEK filter in PDAF. In Nerger et al. (Tellus, 2005), the SEIK filter performed much better than the SEEK filter. Due to this, we focused more on the SEIK filter after this comparison study. For real applications, we recommend using the ESTKF or its local variants LESTKF (In our study Nerger et al. (Mon. Wea. Rev., 2012, [http://dx.doi.org/doi:10.1175/MWR-D-11-00102.1 doi:10.1175/MWR-D-11-00102.1]), we developed the ESTKF method as an alternative to both the SEIK filter and the ETKF, to give better compute performance and assimilation results). 38 38 39 39 40 == `PDAF_put_state_seek` == 41 42 The general espects of the filter specific routines `PDAF_put_state_*` have been described on the page [ModifyModelforEnsembleIntegration Modification of the model code for the ensemble integration]. Here, we list once more the full interface specifically for the SEEK filter. Subsequently, the full set of user-supplied routines specified in the call to `PDAF_put_state_seek` is explained. 40 == `PDAF_assimilate_seek` == 41 42 The general aspects of the filter specific routines `PDAF_assimilate_*` have been described on the page [ModifyModelforEnsembleIntegration Modification of the model code for the ensemble integration] and its sub-page on [InsertAnalysisStep inserting the analysis step]. The routine is used in the fully-parallel implementation variant of the data assimilation system. When the 'flexible' implementation variant is used, the routines `PDAF_put_state_*' is used as described further below. Here, we list once more the full interface of the routine. Subsequently, the full set of user-supplied routines specified in the call to `PDAF_assimilate_seek` is explained. 43 is explained. 43 44 44 45 The interface when using the SEEK filter is the following: 45 46 {{{ 46 SUBROUTINE PDAF_put_state_seek(U_collect_state, U_init_dim_obs, U_obs_op, & 47 U_init_obs, U_prepoststep, U_prodRinvA, status) 47 SUBROUTINE PDAF_assimilate_seek(U_collect_state, U_distribute_state, U_init_dim_obs, & 48 U_obs_op, U_init_obs, U_prepoststep, & 49 U_prodRinvA, U_next_observation, status) 48 50 }}} 49 51 with the following arguments: 50 * [#U_collect_statecollect_state_pdaf.F90 U_collect_state]: The name of the user-supplied routine that initializes a state vector from the array holding the ensemble of model states from the model fields. This is basically the inverse operation to `U_distribute_state` used in `PDAF_get_state` 52 * [#U_collect_statecollect_state_pdaf.F90 U_collect_state]: The name of the user-supplied routine that initializes a state vector from the array holding the ensemble of model states from the model fields. This is basically the inverse operation to `U_distribute_state` used in `PDAF_get_state` and also here. 53 * [#U_distribute_statedistribute_state_pdaf.F90 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. 51 54 * [#U_init_dim_obsinit_dim_obs_pdaf.F90 U_init_dim_obs]: The name of the user-supplied routine that provides the size of observation vector 52 55 * [#U_obs_opobs_op_pdaf.F90 U_obs_op]: The name of the user-supplied routine that acts as the observation operator on some state vector … … 54 57 * [#U_prepoststepprepoststep_seek_pdaf.F90 U_prepoststep]: The name of the pre/poststep routine as in `PDAF_get_state` 55 58 * [#U_prodRinvAprodrinva_pdaf.F90 U_prodRinvA]: The name of the user-supplied routine that computes the product of the inverse of the observation error covariance matrix with some matrix provided to the routine by PDAF. This operation occurs during the analysis step of the SEEK filter. 56 * `status`: The integer status flag. It is zero, if `PDAF_put_state_seek` is exited without errors. 57 59 * [#U_next_observationnext_observation.F90 U_next_observation]: The name of a user supplied routine that initializes the variables `nsteps`, `timenow`, and `doexit`. The same routine is also used in `PDAF_get_state`. 60 * `status`: The integer status flag. It is zero, if `PDAF_assimilate_seek` is exited without errors. 61 62 == `PDAF_put_state_seek` == 63 64 When the 'flexible' implementation variant is chosen for the assimilation system, the routine `PDAF_put_state_seek` has to be used instead of `PDAF_assimilate_seek`. The general aspects of the filter specific routines `PDAF_put_state_*` have been described on the page [ModifyModelforEnsembleIntegration Modification of the model code for the ensemble integration]. The interface of the routine is identical with that of `PDAF_assimilate_seek` with the exception the specification of the user-supplied routines `U_distribute_state` and `U_next_observation` are missing. 65 66 The interface when using the SEEK filter is the following: 67 {{{ 68 SUBROUTINE PDAF_put_state_seek(U_collect_state, U_init_dim_obs, U_obs_op, & 69 U_init_obs, U_prepoststep, U_prodRinvA, status) 70 }}} 58 71 59 72 == User-supplied routines == 60 73 61 Here, all user-supplied routines are described that are required in the call to `PDAF_ put_state_seek`. For some of the generic routines, we link to the page on [ModifyModelforEnsembleIntegration modifying the model code for the ensemble integration].74 Here, all user-supplied routines are described that are required in the call to `PDAF_assimilate_seek`. For some of the generic routines, we link to the page on [ModifyModelforEnsembleIntegration modifying the model code for the ensemble integration]. 62 75 63 76 To indicate user-supplied routines we use the prefix `U_`. In the template directory `templates/` as well as in the example implementation in `testsuite/src/dummymodel_1D` these routines exist without the prefix, but with the extension `_pdaf.F90`. In the section titles below we provide the name of the template file in parentheses. … … 69 82 70 83 This routine is independent of the filter algorithm used. 71 See the page [ModifyModelforEnsembleIntegration#U_collect_statecollect_state_pdaf.F90 modifying the model code for the ensemble integration] for the description of this routine. 84 See the page on [InsertAnalysisStep#U_collect_statecollect_state_pdaf.F90 inserting the analysis step] for the description of this routine. 85 86 87 === `U_distribute_state` (distribute_state_pdaf.F90) === 88 89 This routine is independent of the filter algorithm used. 90 See the page on [InsertAnalysisStep#U_distribute_statedistribute_state_pdaf.F90 inserting the analysis step] for the description of this routine. 72 91 73 92 … … 189 208 190 209 210 === `U_next_observation` (next_observation_pdaf.F90) === 211 212 This routine is independent of the filter algorithm used. 213 See the page on [InsertAnalysisStep#U_next_observationnext_observation_pdaf.F90 inserting the analysis step] for the description of this routine. 214 215 191 216 == Execution order of user-supplied routines == 192 217 193 For the SEEK filter, the user-supplied routines are essentially executed in the order they are listed in the interface to `PDAF_ put_state_seek`. The order can be important as some routines can perform preparatory work for later routines. For example, `U_init_dim_obs` can prepare an index array that provides the information for executing the observation operator in `U_obs_op`.218 For the SEEK filter, the user-supplied routines are essentially executed in the order they are listed in the interface to `PDAF_assimilate_seek`. The order can be important as some routines can perform preparatory work for later routines. For example, `U_init_dim_obs` can prepare an index array that provides the information for executing the observation operator in `U_obs_op`. 194 219 195 220 Before the analysis step is called the following routine is executed: … … 204 229 1. [#U_prodRinvAprodrinva_pdaf.F90 U_prodRinvA] 205 230 1. [#U_prepoststepprepoststep_seek_pdaf.F90 U_prepoststep] (Call to act on the analysis ensemble, called with (positive) value of the time step) 231 232 In case of the routine `PDAF_assimilate_seek`, the following routines are executed after the analysis step: 233 1. [#U_distribute_statedistribute_state_pdaf.F90 U_distribute_state] 234 1. [#U_next_observationnext_observation_pdaf.F90 U_next_observation]