Changeset 2725 in lmdz_wrf


Ignore:
Timestamp:
Oct 17, 2019, 1:50:41 PM (5 years ago)
Author:
lfita
Message:

Adding missing value in index_samevals1D_RK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/module_generic.f90

    r2724 r2725  
    12351235  END SUBROUTINE rm_values_vecRK
    12361236
    1237   SUBROUTINE index_samevals1D_RK(d1r, refv, d1v, vals, ii, indices, samevalues)
     1237  SUBROUTINE index_samevals1D_RK(d1r, refv, d1v, vals, ii, indices, missval, samevalues)
    12381238  ! Subroutine to search for the indices of the same values between 2 1D RK series of values allowing
    12391239  !   repetitions
     
    12421242
    12431243    INTEGER, INTENT(in)                                  :: d1r, d1v
     1244    REAL(r_k), INTENT(in)                                :: missval
    12441245    REAL(r_k), DIMENSION(d1r), INTENT(in)                :: refv
    12451246    REAL(r_k), DIMENSION(d1v), INTENT(in)                :: vals
     
    12581259! ii: quantity of same values found
    12591260! indices: output
     1261! missval: missing value
    12601262! samevalues: values where coincidence is found
    12611263
     
    12671269    DO ir=1, d1r
    12681270      DO iv=1, d1v
    1269         IF (vals(iv) == refv(ir)) THEN
     1271        IF ( (refv(ir) /= missval) .AND. (vals(iv) == refv(ir)) )THEN
    12701272          ii = ii + 1
    12711273          indices(ii,:) = (/ ir, iv /)
Note: See TracChangeset for help on using the changeset viewer.