source: LMDZ5/branches/IPSLCM5A2.1_ISO/libf/phyiso/rrtm/set_resol_mod.F90

Last change on this file was 3331, checked in by acozic, 7 years ago

Add modification for isotopes

  • Property svn:executable set to *
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.