| | 1 | = PDAF_iau_set_weights = |
| | 2 | |
| | 3 | This page documents the routine `PDAF_iau_set_weights` of PDAF, which was introduced with PDAF V3.0. |
| | 4 | |
| | 5 | This routine allows the user to provide a user-specified array of increment weights. While PDAF_iau_init allows to choose among pre-defined weight functions, one might like to use a different function and the corresponding weight can be set here. |
| | 6 | |
| | 7 | The routine has to be called by all processes that are model processes. A common place is to call the routine in `assimilate_pdaf` after an analysis step or in `distribute_state_pdaf`. |
| | 8 | |
| | 9 | |
| | 10 | The interface is the following: |
| | 11 | {{{ |
| | 12 | SUBROUTINE PDAF_iau_set_weights(iweights, weights) |
| | 13 | }}} |
| | 14 | with the following arguments: |
| | 15 | {{{ |
| | 16 | INTEGER, INTENT(in) :: iweights !< Length of weights input vector |
| | 17 | REAL, INTENT(in) :: weights(iweights) !< Input weight vector |
| | 18 | }}} |
| | 19 | |
| | 20 | Hints: |
| | 21 | * If `iweights` is different from the number of IAU steps set in `PDAF_iau_init` or `PDAF_iau_reset` only the minimum of iweights and the set IAU steps is filled with the provided weights vetor. |
| | 22 | * We recommend to only change the weights vector before a forecast phase. |
| | 23 | * While setting different weight functions for different processes or model tasks is possible this likely leads to inconsistencies. |