Changeset 2318 in lmdz_wrf


Ignore:
Timestamp:
Feb 5, 2019, 4:18:20 PM (6 years ago)
Author:
lfita
Message:

Adding which dimension coincide with slice in `multi_spaceweightstats_in1DRKno_slc3v3'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/module_scientific.f90

    r2317 r2318  
    56425642  END SUBROUTINE spaceweightstats
    56435643
    5644   SUBROUTINE multi_spaceweightstats_in1DRKno_slc3v3(varin, Ngridsin, gridsin, percentages, varout,     &
    5645     di1, ds1, ds2, ds3, maxNgridsin)
     5644  SUBROUTINE multi_spaceweightstats_in1DRKno_slc3v3(varin, idv, Ngridsin, gridsin, percentages,       &
     5645    varout, di1, ds1, ds2, ds3, maxNgridsin)
    56465646  ! Subroutine to compute an spatial statistics value from a 1D RK matrix without running one into a
    56475647  !   matrix of 3-variables slices of rank 3 using spatial weights
     
    56495649    IMPLICIT NONE
    56505650
    5651     INTEGER, INTENT(in)                                  :: di1, ds1, ds2, ds3
     5651    INTEGER, INTENT(in)                                  :: di1, idv, ds1, ds2, ds3
    56525652    INTEGER, INTENT(in)                                  :: maxNgridsin
    56535653    INTEGER, DIMENSION(ds1,ds2,ds3), INTENT(in)          :: Ngridsin
     
    56765676! maxNgridsin: maximum number of grid points from the 3D matrix in any slice
    56775677! varin: 1D RK variable to be used
     5678! idv: which dimension of the sliced grids coincide with the dimension of 1D varin
    56785679! Ngridsin: number of grids from 3D RK matrix for each slice
    56795680! gridsin: coordinates of grids of the 3D RK matrix B to matrix of slices
     
    57205721            ! Getting the values
    57215722            DO iv=1, Nin
    5722               i1 = gin(iv,1)
     5723              i1 = gin(iv,idv)
    57235724              vin(iv) = varin(i1)
    57245725            END DO
     
    57475748            varout(s1,s2,s3,7) = Nin*1.
    57485749          ELSE
    5749             i1 = gridsin(s1,s2,s3,1,1)
     5750            i1 = gridsin(s1,s2,s3,1,idv)
    57505751            varout(s1,s2,s3,1) = varin(i1)
    57515752            varout(s1,s2,s3,2) = varin(i1)
Note: See TracChangeset for help on using the changeset viewer.