source: trunk/LMDZ.COMMON/libf/evolution/interpolate_TIPEM_TIGCM.F90 @ 2962

Last change on this file since 2962 was 2855, checked in by llange, 2 years ago

PEM
Documentation of the main subroutines, and variables.
Unused programs have been removed.
LL

File size: 1.4 KB
Line 
1   subroutine interpolate_TIPEM_TIGCM(ngrid,nslope,nsoil_PEM,nsoil_GCM,TI_PEM,TI_GCM)
2
3!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4!!!
5!!! Purpose: Transfer the thermal inertia from the PEM vertical  grid to the GCM vertical grid
6!!!
7!!!
8!!! Author: LL
9!!!
10!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11
12
13      implicit none
14
15
16!======================================================================
17!  arguments
18!  ---------
19!  inputs:
20      integer,intent(in) :: ngrid                                ! # of horizontal grid points
21      integer,intent(in) :: nslope                               ! # of subslope wihtin the mesh
22      integer,intent(in) :: nsoil_PEM                            ! # of soil layers in the PEM
23      integer,intent(in) :: nsoil_GCM                            ! # of soil layers in the GCM
24      real,intent(in) :: TI_PEM(ngrid,nsoil_PEM,nslope)          !  Thermal inertia in the PEM vertical grid [J/m^2/K/s^{1/2}]
25      real,intent(inout) :: TI_GCM(ngrid,nsoil_GCM,nslope)       ! Thermal inertia in the GCM vertical grid [J/m^2/K/s^{1/2}]
26
27!local variable
28      integer :: ig,islope,iloop                                 ! loop variables
29     do ig = 1,ngrid
30       do islope = 1,nslope
31         do iloop = 1,nsoil_GCM
32           TI_GCM(ig,iloop,islope) = TI_PEM(ig,iloop,islope)
33         enddo
34       enddo
35     enddo
36
37
38  end subroutine interpolate_TIPEM_TIGCM
Note: See TracBrowser for help on using the repository browser.