MODULE interpolate_TIPEM_TIGCM_mod implicit none !======================================================================= contains !======================================================================= SUBROUTINE interpolate_TIPEM_TIGCM(ngrid,nslope,nsoil_PEM,nsoil_GCM,TI_PEM,TI_GCM) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! !!! Purpose: Transfer the thermal inertia from the PEM vertical grid to the GCM 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_GCM ! # 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_GCM,nslope), intent(inout) :: TI_GCM ! Thermal inertia in the GCM vertical grid [J/m^2/K/s^{1/2}] !----- Code TI_GCM(:,:,:) = TI_PEM(:,:nsoil_GCM,:) END SUBROUTINE interpolate_TIPEM_TIGCM END MODULE interpolate_TIPEM_TIGCM_mod