LMDZ
covnat_loc.F
Go to the documentation of this file.
1 !
2 ! $Header$
3 !
4  SUBROUTINE covnat_loc(klevel,ucov, vcov, unat, vnat )
6  IMPLICIT NONE
7 
8 c=======================================================================
9 c
10 c Auteur: F Hourdin Phu LeVan
11 c -------
12 c
13 c Objet:
14 c ------
15 c
16 c *********************************************************************
17 c calcul des compos. naturelles a partir des comp.covariantes
18 c ********************************************************************
19 c
20 c=======================================================================
21 
22 #include "dimensions.h"
23 #include "paramet.h"
24 #include "comgeom.h"
25 
26  INTEGER klevel
27  REAL ucov( ijb_u:ije_u,klevel ), vcov( ijb_v:ije_v,klevel )
28  REAL unat( ijb_u:ije_u,klevel ), vnat( ijb_v:ije_v,klevel )
29  INTEGER l,ij
30  INTEGER :: ijb,ije
31 
32 
33  ijb=ij_begin
34  ije=ij_end
35 
36  if (pole_nord) then
37 
38 !$OMP DO SCHEDULE(STATIC,OMP_CHUNK)
39  DO l = 1,klevel
40  DO ij = 1, iip1
41  unat(ij,l) =0.
42  END DO
43  ENDDO
44 !$OMP ENDDO NOWAIT
45  endif
46 
47  if (pole_sud) then
48 !$OMP DO SCHEDULE(STATIC,OMP_CHUNK)
49  DO l = 1,klevel
50  DO ij = ip1jm+1, ip1jmp1
51  unat(ij,l) =0.
52  END DO
53  ENDDO
54 !$OMP ENDDO NOWAIT
55  endif
56 
57  ijb=ij_begin
58  ije=ij_end
59  if (pole_nord) ijb=ij_begin+iip1
60  if (pole_sud) ije=ij_end-iip1
61 
62 !$OMP DO SCHEDULE(STATIC,OMP_CHUNK)
63  DO l = 1,klevel
64  DO ij = ijb, ije
65  unat( ij,l ) = ucov( ij,l ) / cu(ij)
66  ENDDO
67  END DO
68 !$OMP ENDDO NOWAIT
69 
70  ijb=ij_begin-iip1
71  ije=ij_end
72  if (pole_nord) ijb=ij_begin
73  if (pole_sud) ije=ij_end-iip1
74 
75 !$OMP DO SCHEDULE(STATIC,OMP_CHUNK)
76  DO l = 1,klevel
77  DO ij = ijb,ije
78  vnat( ij,l ) = vcov( ij,l ) / cv(ij)
79  ENDDO
80  ENDDO
81 !$OMP ENDDO NOWAIT
82 
83  RETURN
84  END
!$Header llmm1 INTEGER ip1jmp1
Definition: paramet.h:14
integer, save ij_end
logical, save pole_sud
integer, save ijb_v
!$Header llmm1 INTEGER ip1jm
Definition: paramet.h:14
logical, save pole_nord
integer, save ij_begin
!$Id!Parameters for parameters that control the rate of approach!to quasi equilibrium noff nlm real tlcrit real entp real sigd real coeffs real dtmax real cu real betad real damp real delta COMMON cvparam nlm tlcrit sigd coeffs cu
Definition: cvparam.h:12
integer, save ije_v
subroutine covnat_loc(klevel, ucov, vcov, unat, vnat)
Definition: covnat_loc.F:5
!$Header!CDK comgeom COMMON comgeom cv
Definition: comgeom.h:25
integer, save ije_u
integer, save ijb_u