source: LMDZ5/branches/IPSLCM5A2.1_ISO/libf/phyiso/rrtm/sufft_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: 857 bytes
Line 
1MODULE SUFFT_MOD
2CONTAINS
3SUBROUTINE SUFFT
4
5USE PARKIND1  ,ONLY : JPIM     ,JPRB
6
7USE TPM_DIM
8USE TPM_GEN
9USE TPM_DISTR
10USE TPM_GEOMETRY
11USE TPM_FFT
12
13IMPLICIT NONE
14
15INTEGER(KIND=JPIM) :: JGL,IGLG
16LOGICAL :: LLP1,LLP2
17
18!     ------------------------------------------------------------------
19
20LLP1 = NPRINTLEV>0
21LLP2 = NPRINTLEV>1
22IF(LLP1) WRITE(NOUT,*) '=== ENTER ROUTINE SUFFT ==='
23
24ALLOCATE(T%TRIGS(R%NDLON,D%NDGL_FS))
25IF(LLP2)WRITE(NOUT,9) 'T%TRIGS    ',SIZE(T%TRIGS),SHAPE(T%TRIGS)
26ALLOCATE(T%NFAX(19,D%NDGL_FS))
27IF(LLP2)WRITE(NOUT,9) 'T%NFAX     ',SIZE(T%NFAX),SHAPE(T%NFAX)
28
29DO JGL=1,D%NDGL_FS
30  IGLG = D%NPTRLS(MYSETW)+JGL-1
31  CALL SET99(T%TRIGS(1,JGL),T%NFAX(1,JGL),G%NLOEN(IGLG))
32ENDDO
33
34!     ------------------------------------------------------------------
35
369 FORMAT(1X,'ARRAY ',A10,' ALLOCATED ',8I8)
37
38END SUBROUTINE SUFFT
39END MODULE SUFFT_MOD
Note: See TracBrowser for help on using the repository browser.