/[lmdze]/trunk/phylmd/CV_routines/cv_uncompress.f
ViewVC logotype

Annotation of /trunk/phylmd/CV_routines/cv_uncompress.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 103 - (hide annotations)
Fri Aug 29 13:00:05 2014 UTC (9 years, 9 months ago) by guez
File size: 1450 byte(s)
Renamed module cvparam to cv_param. Deleted procedure
cv_param. Changed variables of module cv_param into parameters.

In procedures cv_driver, cv_uncompress and cv3_uncompress, removed
some arguments giving dimensions and used module variables klon and
klev instead.

In procedures gradiv2, laplacien_gam and laplacien, changed
declarations of local variables because klevel is not always klev.

Removed code for nudging surface pressure.

Removed arguments pim and pjm of tau2alpha. Added assignment of false
to variable first.

Replaced real argument del of procedures foeew and FOEDE by logical
argument.

1 guez 97 module cv_uncompress_m
2 guez 52
3 guez 97 implicit none
4 guez 52
5 guez 97 contains
6 guez 52
7 guez 103 SUBROUTINE cv_uncompress(idcum, iflag, precip, cbmf, ft, fq, fu, fv, Ma, &
8     qcondc, iflag1, precip1, cbmf1, ft1, fq1, fu1, fv1, Ma1, qcondc1)
9 guez 52
10 guez 103 use cv_param, ONLY: nl
11     USE dimphy, ONLY: klev, klon
12 guez 52
13 guez 103 integer, intent(in):: idcum(:) ! (ncum)
14     integer, intent(in):: iflag(klon)
15     real, intent(in):: precip(klon), cbmf(klon)
16     real, intent(in):: ft(klon, klev), fq(klon, klev), fu(klon, klev)
17     real, intent(in):: fv(klon, klev)
18     real, intent(in):: Ma(klon, klev)
19     real, intent(in):: qcondc(klon, klev) !cld
20 guez 52
21 guez 103 integer, intent(inout):: iflag1(klon)
22     real, intent(inout):: precip1(klon), cbmf1(klon)
23     real, intent(inout), dimension(klon, klev):: ft1, fq1, fu1, fv1
24     real, intent(inout):: Ma1(klon, klev)
25     real, intent(inout):: qcondc1(klon, klev) !cld
26 guez 52
27 guez 103 ! Local:
28     integer ncum, i, k
29    
30     !------------------------------------------------------------------
31    
32     ncum = size(idcum)
33    
34     do i=1, ncum
35 guez 97 precip1(idcum(i))=precip(i)
36     cbmf1(idcum(i))=cbmf(i)
37     iflag1(idcum(i))=iflag(i)
38     end do
39 guez 52
40 guez 103 do k=1, nl
41     do i=1, ncum
42     ft1(idcum(i), k)=ft(i, k)
43     fq1(idcum(i), k)=fq(i, k)
44     fu1(idcum(i), k)=fu(i, k)
45     fv1(idcum(i), k)=fv(i, k)
46     Ma1(idcum(i), k)=Ma(i, k)
47     qcondc1(idcum(i), k)=qcondc(i, k)
48 guez 97 end do
49     end do
50    
51     end SUBROUTINE cv_uncompress
52    
53     end module cv_uncompress_m

  ViewVC Help
Powered by ViewVC 1.1.21