/[lmdze]/trunk/dyn3d/covnat.f90
ViewVC logotype

Contents of /trunk/dyn3d/covnat.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations)
Thu Jun 13 14:40:06 2019 UTC (4 years, 11 months ago) by guez
File size: 1052 byte(s)
Change all `.f` suffixes to `.f90`. (The opposite was done in revision
82.)  Because of change of philosopy in GNUmakefile: we already had a
rewritten rule for `.f`, so it does not make the makefile longer to
replace it by a rule for `.f90`. And it spares us options of
makedepf90 and of the compiler. Also we prepare the way for a simpler
`CMakeLists.txt`.

1 module covnat_m
2
3 IMPLICIT NONE
4
5 contains
6
7 SUBROUTINE covnat(klevel, ucov, vcov, unat, vnat)
8
9 ! From LMDZ4/libf/dyn3d/covnat.F, version 1.1.1.1 2004/05/19 12:53:07
10
11 USE comgeom, ONLY: cu, cv
12 USE paramet_m, ONLY: iip1, iip2, ip1jm, ip1jmp1
13
14 ! Authors: F. Hourdin, Phu Le Van
15
16 ! Objet : calcul des composantes naturelles du vent à partir des
17 ! composantes covariantes.
18
19 INTEGER, intent(in):: klevel
20 REAL, intent(in):: ucov(ip1jmp1, klevel), vcov(ip1jm, klevel)
21 REAL, intent(out):: unat(ip1jmp1, klevel), vnat(ip1jm, klevel)
22
23 ! Local:
24 INTEGER l, ij
25
26 !------------------------------------------------------------------
27
28 DO l = 1, klevel
29 DO ij = 1, iip1
30 unat(ij, l) =0.
31 END DO
32
33 DO ij = iip2, ip1jm
34 unat(ij, l) = ucov(ij, l) / cu(ij)
35 ENDDO
36
37 DO ij = ip1jm+1, ip1jmp1
38 unat(ij, l) =0.
39 END DO
40
41 DO ij = 1, ip1jm
42 vnat(ij, l) = vcov(ij, l) / cv(ij)
43 ENDDO
44 ENDDO
45
46 END SUBROUTINE covnat
47
48 end module covnat_m

  ViewVC Help
Powered by ViewVC 1.1.21