Changes between Version 1 and Version 2 of PDAF_diag_ensmean


Ignore:
Timestamp:
Mar 26, 2025, 11:09:04 AM (7 days ago)
Author:
lnerger
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PDAF_diag_ensmean

    v1 v2  
    77The routine can be called in the pre/poststep routine of PDAF both before and after the analysis step to compute the ensemble statistics.
    88
    9 The interface is the following:
     9The interface is:
    1010{{{
    11 SUBROUTINE PDAF_diag_ensmean(dim, dim_ens, state, ens, status)
     11SUBROUTINE PDAF_diag_ensmean(dim_p, dim_ens, state_p, ens_p, status)
     12
     13  INTEGER, INTENT(in) :: dim_p               ! PE-local state dimension
     14  INTEGER, INTENT(in) :: dim_ens             ! Ensemble size
     15  REAL, INTENT(inout) :: state_p(dim_p)      ! ensemble mean state vector
     16  REAL, INTENT(in)    :: ens(dim_p, dim_ens) ! State ensemble
     17  INTEGER, INTENT(out) :: status             ! Status flag (0=success)
    1218}}}
    13 with the following arguments:
    14 {{{
    15   INTEGER, INTENT(in) :: dim               ! state dimension
    16   INTEGER, INTENT(in) :: dim_ens           ! Ensemble size
    17   REAL, INTENT(inout) :: state(dim)        ! ensemble mean state vector
    18   REAL, INTENT(in)    :: ens(dim, dim_ens) ! State ensemble
    19   INTEGER, INTENT(out) :: status           ! Status flag (0=success)
    20 }}}
     19
     20**Notes:**
     21 * The routine compute the ensemble mean for the given ensemble array `ens_p`. This works for both a parallelized model and without parallelization.
     22 * The routine does not perform any MPI operations and can also be used if PDAF was not initialized by calling `PDAF_init`.