MODULE interpol_TI_PEM2PCM_mod implicit none !======================================================================= contains !======================================================================= SUBROUTINE interpol_TI_PEM2PCM(ngrid,nslope,nsoil_PEM,nsoil_PCM,TI_PEM,TI_PCM) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! !!! Purpose: Transfer the thermal inertia from the PEM vertical grid to the PCM vertical grid !!! !!! !!! Author: LL !!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! implicit none !====================================================================== ! arguments ! --------- ! inputs: integer, intent(in) :: ngrid ! # of horizontal grid points integer, intent(in) :: nslope ! # of subslope wihtin the mesh integer, intent(in) :: nsoil_PEM ! # of soil layers in the PEM integer, intent(in) :: nsoil_PCM ! # of soil layers in the GCM real, dimension(ngrid,nsoil_PEM,nslope), intent(in) :: TI_PEM ! Thermal inertia in the PEM vertical grid [J/m^2/K/s^{1/2}] real, dimension(ngrid,nsoil_PCM,nslope), intent(inout) :: TI_PCM ! Thermal inertia in the PCM vertical grid [J/m^2/K/s^{1/2}] !----- Code TI_PCM = TI_PEM(:,:nsoil_PCM,:) END SUBROUTINE interpol_TI_PEM2PCM END MODULE interpol_TI_PEM2PCM_mod