Changes between Version 1 and Version 2 of PDAFomi_diag_get_obs


Ignore:
Timestamp:
Mar 23, 2025, 8:31:24 AM (9 days ago)
Author:
lnerger
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PDAFomi_diag_get_obs

    v1 v2  
    99The interface is the following:
    1010{{{
    11   SUBROUTINE PDAFomi_diag_get_obs(id_obs, dim_obs_diag, ncoord, obs_p_ptr, ocoord_p_ptr)
     11  SUBROUTINE PDAFomi_diag_get_obs(id_obs, dim_obs_p_diag, ncoord, obs_p_ptr, ocoord_p_ptr)
    1212}}}
    1313with the following arguments:
    1414{{{
    1515    INTEGER, INTENT(in) :: id_obs                    ! Index of observation type to return
    16     INTEGER, INTENT(out) :: dim_obs_diag             ! Observation dimension
     16    INTEGER, INTENT(out) :: dim_obs_p_diag           ! Observation dimension
    1717    INTEGER, INTENT(out) :: ncoord                   ! Number of observation dimensions
    1818    REAL, POINTER, INTENT(out) :: obs_p_ptr(:)       ! Pointer to observation vector
     
    2222
    2323**Notes:**
    24  * In Fortran user code the obsevation pointer should be declared in the form[[BR]] `REAL, POINTER :: obs_p_ptr(:)`[[BR]] It does not need to be allocated
    25  * In Fortran user code the obsevation pointer should be declared in the form[[BR]] `REAL, POINTER :: ocoord_p_ptr(:,:)`[[BR]] It does not need to be allocated
     24 * In case of a parallelized model, the vector obs_p_prt and the array ocoord_p_prt contain the values for the process-sub-domain of the calling processor.
     25 * In Fortran user code the obsevation pointer should be declared in the form[[BR]] `REAL, POINTER :: obs_p_ptr(:)`[[BR]] It does not need to be allocated. The target vector has the length `dim_obs_p_diag`.
     26 * In Fortran user code the obsevation pointer should be declared in the form[[BR]] `REAL, POINTER :: ocoord_p_ptr(:,:)`[[BR]] It does not need to be allocated. The target array has the size `(ncoord, dim_obs_p_diag)`.
    2627 * If the observation diagnostics have not be activated by using [wiki:PDAFomi_set_obs_diag] the pointers will not be set and `dim_obs_diag=0` and `ncoord=0` will be returned. These values canbe checked before assessing the pinter arrays
    2728 * The array `ocoord_p_ptr(:,:)` is organized as in the observation modules:
    2829   * First index: index of different coordinate directions for observation specified by the second index
    29    * Second index: ID of the observation
     30   * Second index: index of the observation
    3031
    3132