source: LMDZ5/trunk/libf/phylmd/rrtm/set_resol_mod.F90 @ 5048

Last change on this file since 5048 was 1990, checked in by Laurent Fairhead, 11 years ago

Corrections à la version r1989 pour permettre la compilation avec RRTM
Inclusion de la licence CeCILL_V2 pour RRTM


Changes to revision r1989 to enable RRTM code compilation
RRTM part put under CeCILL_V2 licence

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
File size: 945 bytes
Line 
1MODULE SET_RESOL_MOD
2CONTAINS
3SUBROUTINE SET_RESOL(KRESOL)
4USE PARKIND1  ,ONLY : JPIM     ,JPRB
5
6USE TPM_GEN
7USE TPM_DIM
8USE TPM_TRANS
9USE TPM_DISTR
10USE TPM_GEOMETRY
11USE TPM_FIELDS
12USE TPM_FFT
13USE ABORT_TRANS_MOD
14
15IMPLICIT NONE
16
17! Declaration of arguments
18
19INTEGER(KIND=JPIM) ,OPTIONAL, INTENT(IN) :: KRESOL
20
21! Local varaibles
22INTEGER(KIND=JPIM) :: IRESOL
23
24!     ------------------------------------------------------------------
25
26IRESOL = 1
27IF(PRESENT(KRESOL)) THEN
28  IF(KRESOL < 1 .OR. KRESOL > NMAX_RESOL) THEN
29    WRITE(NOUT,*)'SET_RESOL: UNKNOWN RESOLUTION ',KRESOL,NMAX_RESOL
30    CALL ABORT_TRANS('SET_RESOL:KRESOL < 1 .OR. KRESOL > NMAX_RESOL')
31  ENDIF
32  IRESOL = KRESOL
33ENDIF
34IF(IRESOL /= NCUR_RESOL) THEN
35  NCUR_RESOL = IRESOL
36  R => DIM_RESOL(NCUR_RESOL)
37  F => FIELDS_RESOL(NCUR_RESOL)
38  G => GEOM_RESOL(NCUR_RESOL)
39  D => DISTR_RESOL(NCUR_RESOL)
40  T => FFT_RESOL(NCUR_RESOL)
41ENDIF
42
43END SUBROUTINE SET_RESOL
44END MODULE SET_RESOL_MOD
Note: See TracBrowser for help on using the repository browser.