1 | MODULE interpol_TI_PEM2PCM_mod |
---|
2 | |
---|
3 | implicit none |
---|
4 | |
---|
5 | !======================================================================= |
---|
6 | contains |
---|
7 | !======================================================================= |
---|
8 | |
---|
9 | SUBROUTINE interpol_TI_PEM2PCM(ngrid,nslope,nsoil_PEM,nsoil_PCM,TI_PEM,TI_PCM) |
---|
10 | |
---|
11 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
12 | !!! |
---|
13 | !!! Purpose: Transfer the thermal inertia from the PEM vertical grid to the PCM vertical grid |
---|
14 | !!! |
---|
15 | !!! |
---|
16 | !!! Author: LL |
---|
17 | !!! |
---|
18 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
19 | |
---|
20 | implicit none |
---|
21 | |
---|
22 | !====================================================================== |
---|
23 | ! arguments |
---|
24 | ! --------- |
---|
25 | ! inputs: |
---|
26 | integer, intent(in) :: ngrid ! # of horizontal grid points |
---|
27 | integer, intent(in) :: nslope ! # of subslope wihtin the mesh |
---|
28 | integer, intent(in) :: nsoil_PEM ! # of soil layers in the PEM |
---|
29 | integer, intent(in) :: nsoil_PCM ! # of soil layers in the GCM |
---|
30 | real, dimension(ngrid,nsoil_PEM,nslope), intent(in) :: TI_PEM ! Thermal inertia in the PEM vertical grid [J/m^2/K/s^{1/2}] |
---|
31 | |
---|
32 | real, dimension(ngrid,nsoil_PCM,nslope), intent(inout) :: TI_PCM ! Thermal inertia in the PCM vertical grid [J/m^2/K/s^{1/2}] |
---|
33 | |
---|
34 | !----- Code |
---|
35 | TI_PCM = TI_PEM(:,:nsoil_PCM,:) |
---|
36 | |
---|
37 | END SUBROUTINE interpol_TI_PEM2PCM |
---|
38 | |
---|
39 | END MODULE interpol_TI_PEM2PCM_mod |
---|