66 | | * `subtype`: The subtype index of the filter algorithm. |
67 | | * `param_int`: The array of integer parameters |
| 68 | * `subtype`: The subtype index of the filter algorithm [integer, input]. |
| 69 | * `param_int`: The array of integer parameters [integer(dim_pint), input]. |
| 70 | * `dim_pint`: The number of parameters in `param_int` [integer, input]. |
| 71 | * `param_real`: The array of real parameters [real(dim_preal), input]. |
| 72 | * `dim_preal`: The number of parameters in `param_real` [integer, input] |
| 73 | * `ensemblefilter`: Flag, whether the filter is an ensemble filter or a mode-based filter [logical, output]. |
| 74 | * `fixedbasis`: Flag, whether the chosen `subtype` is a filter with fixed ensemble, such that only the ensemble mean is integrated by the model [logical, output]. |
| 75 | * `verbose`: Verbosity flag [integer, input]. Valid are the values provided to `PDAF_init`. |
| 76 | * `outflag`: Error flag [integer, output] |
71 | | * The routine should check, whether the provided value of `subtype` is a valid choice. |
| 80 | * The routine should check, whether the provided value of `subtype` is a valid choice. If this is not the case, the error flag should be set to 2. |
| 81 | * Only parameters from `param_int` and `param_real` up to the value `dim_pint` and `dim_preal` should be considered in the initialization. The array may be bigger, but the user defined which parameters are to be used be setting the values of `dim_pint` and `dim_preal`. |
| 82 | * The logical flags `ensemblefilter` and `fixedbasis` have o set in the routine. |
| 83 | * The error flag `outflag` is initial set to 0. |
| 84 | * The internal parameters are declared and stored in the Fortran module `PDAF_mod_filter`. If a new filter algorithm requires additional parameters, their declaration should be added to the module. |
| 85 | |