| | 65 | |
| | 66 | |
| | 67 | == PDAF-D_get_memberid.F90 == |
| | 68 | |
| | 69 | This routine can be called from the model during an ensemble integration. It provides access to the number (id) of the ensemble member that is currently intrated. |
| | 70 | |
| | 71 | {{{ |
| | 72 | CALL PDAF_get_memberid(memberid) |
| | 73 | }}} |
| | 74 | |
| | 75 | The only argument is: |
| | 76 | * `memberid`: In integer providing on output the id the ensemble member |
| | 77 | |
| | 78 | Note: |
| | 79 | * Using `PDAF_get_memberid` is obviously only useful if more than one ensemble member is integrated by a model task. If there are as many model tasks as ensemble members, `memberid` is always 1. In this case one can use `task_id` from the module `mod_parallel` to distinguish the ensemble members. |
| | 80 | |
| | 81 | |
| | 82 | == PDAF-D_incremental.F90 == |
| | 83 | |
| | 84 | When incremental updating is used, this routine is called during the forecast phase to add a fraction of the analysis increment to an ensemble member. |
| | 85 | |
| | 86 | {{{ |
| | 87 | CALL PDAF_incremental(steps, U_dist_stateinc) |
| | 88 | }}} |
| | 89 | |
| | 90 | The arguments are: |
| | 91 | * `steps`: The number of time steps over which the increment should be distributed |
| | 92 | * `U_dist_stateinc`: The name of the user supplied call-back function that performs the actual addition of the state vector increment to the individual model fields. |
| | 93 | |
| | 94 | |
| | 95 | == PDAF-D_add_increment.F90 == |
| | 96 | |
| | 97 | When incremental updating is used, the state increment of the analysis step is not directly added to the forecast state. To add the increment to some state vector `PDAF_add_increment` is called: |
| | 98 | |
| | 99 | {{{ |
| | 100 | CALL PDAF_add_increment(dim_p, state_p) |
| | 101 | }}} |
| | 102 | |
| | 103 | The arguments are |
| | 104 | * `dim_p`: An integer giving the state dimension of `state_p` |
| | 105 | * `state_p`: A real array of size `dim_p` holding the on input the state vector and on output the state vector plus increment. |
| | 106 | |
| | 107 | Note: |
| | 108 | * the routine can be used in the prepoststep routine when the analysis state should be analized. |
| | 109 | |