/[lmdze]/trunk/libf/dyn3d/convflu.f90
ViewVC logotype

Contents of /trunk/libf/dyn3d/convflu.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 62 - (show annotations)
Thu Jul 26 14:37:37 2012 UTC (11 years, 10 months ago) by guez
File size: 1335 byte(s)
Changed handling of compiler in compilation system.

Removed the prefix letters "y", "p", "t" or "z" in some names of variables.

Replaced calls to NetCDF by calls to NetCDF95.

Extracted "ioget_calendar" procedures from "calendar.f90" into a
separate file.

Extracted to a separate file, "mathop2.f90", procedures that were not
part of the generic interface "mathop" in "mathop.f90".

Removed computation of "dq" in "bilan_dyn", which was not used.

In "iniadvtrac", removed schemes 20 Slopes and 30 Prather. Was not
compatible with declarations of array sizes.

In "clcdrag", "ustarhb", "vdif_kcay", "yamada4" and "coefkz", changed
the size of some arrays from "klon" to "knon".

Removed possible call to "conema3" in "physiq".

Removed unused argument "cd" in "yamada".

1 SUBROUTINE convflu( xflu,yflu,nbniv,convfl )
2
3 ! From LMDZ4/libf/dyn3d/convflu.F, version 1.1.1.1 2004/05/19 12:53:05
4
5 ! P. Le Van
6
7 ! Calcule la (convergence horiz. * aire locale) du flux ayant pour
8 ! composantes xflu et yflu ,variables extensives .
9
10 ! nbniv est le nombre de niveaux vert. de xflu et de yflu.
11
12 use dimens_m
13 use paramet_m
14 use comgeom
15
16 IMPLICIT NONE
17
18 integer, intent(in):: nbniv
19 REAL, intent(in):: xflu( ip1jmp1,nbniv ), yflu( ip1jm,nbniv )
20 real, intent(out):: convfl( ip1jmp1,nbniv )
21
22 real convpn,convps
23 INTEGER l,ij
24 REAL SSUM
25
26 !------------------------------------------------------------------
27
28 DO l = 1,nbniv
29 DO ij = iip2, ip1jm - 1
30 convfl( ij + 1,l ) = xflu( ij,l ) - xflu( ij + 1,l ) + &
31 yflu(ij +1,l ) - yflu( ij -iim,l )
32 end DO
33
34 ! correction pour convfl( 1,j,l)
35 ! convfl(1,j,l)= convfl(iip1,j,l)
36
37 DO ij = iip2,ip1jm,iip1
38 convfl( ij,l ) = convfl( ij + iim,l )
39 end DO
40
41 ! calcul aux pĂ´les
42
43 convpn = SSUM( iim, yflu( 1 ,l ), 1 )
44 convps = - SSUM( iim, yflu( ip1jm-iim,l ), 1 )
45 DO ij = 1,iip1
46 convfl( ij ,l ) = convpn * aire( ij ) / apoln
47 convfl( ij+ ip1jm,l ) = convps * aire( ij+ ip1jm) / apols
48 end DO
49 end DO
50
51 END SUBROUTINE convflu

  ViewVC Help
Powered by ViewVC 1.1.21