[5099] | 1 | |
---|
[1279] | 2 | ! $Id: ugeostr.F90 5160 2024-08-03 12:56:58Z jyg $ |
---|
[5099] | 3 | |
---|
[5103] | 4 | SUBROUTINE ugeostr(phi,ucov) |
---|
[524] | 5 | |
---|
[1474] | 6 | ! Calcul du vent covariant geostrophique a partir du champ de |
---|
| 7 | ! geopotentiel. |
---|
| 8 | ! We actually compute: (1 - cos^8 \phi) u_g |
---|
| 9 | ! to have a wind going smoothly to 0 at the equator. |
---|
| 10 | ! We assume that the surface pressure is uniform so that model |
---|
| 11 | ! levels are pressure levels. |
---|
[524] | 12 | |
---|
[5117] | 13 | USE comconst_mod, ONLY: omeg, rad |
---|
[5136] | 14 | USE lmdz_comgeom2 |
---|
[2597] | 15 | |
---|
[5159] | 16 | USE lmdz_dimensions, ONLY: iim, jjm, llm, ndm |
---|
| 17 | USE lmdz_paramet |
---|
[5113] | 18 | IMPLICIT NONE |
---|
[524] | 19 | |
---|
| 20 | |
---|
[5159] | 21 | |
---|
| 22 | |
---|
[5117] | 23 | REAL ucov(iip1,jjp1,llm),phi(iip1,jjp1,llm) |
---|
| 24 | REAL um(jjm,llm),fact,u(iip1,jjm,llm) |
---|
| 25 | INTEGER i,j,l |
---|
[524] | 26 | |
---|
[5117] | 27 | REAL zlat |
---|
[524] | 28 | |
---|
[1474] | 29 | um(:,:)=0 ! initialize um() |
---|
[524] | 30 | |
---|
[1474] | 31 | DO j=1,jjm |
---|
[1279] | 32 | |
---|
[5117] | 33 | IF (abs(sin(rlatv(j)))<1.e-4) THEN |
---|
[1474] | 34 | zlat=1.e-4 |
---|
| 35 | else |
---|
| 36 | zlat=rlatv(j) |
---|
| 37 | endif |
---|
| 38 | fact=cos(zlat) |
---|
| 39 | fact=fact*fact |
---|
| 40 | fact=fact*fact |
---|
| 41 | fact=fact*fact |
---|
| 42 | fact=(1.-fact)/ & |
---|
| 43 | (2.*omeg*sin(zlat)*(rlatu(j+1)-rlatu(j))) |
---|
| 44 | fact=-fact/rad |
---|
| 45 | DO l=1,llm |
---|
| 46 | DO i=1,iim |
---|
| 47 | u(i,j,l)=fact*(phi(i,j+1,l)-phi(i,j,l)) |
---|
| 48 | um(j,l)=um(j,l)+u(i,j,l)/REAL(iim) |
---|
| 49 | ENDDO |
---|
| 50 | ENDDO |
---|
| 51 | ENDDO |
---|
[5101] | 52 | CALL dump2d(jjm,llm,um,'Vent-u geostrophique') |
---|
[524] | 53 | |
---|
[1474] | 54 | ! calcul des champ de vent: |
---|
[524] | 55 | |
---|
[1474] | 56 | DO l=1,llm |
---|
| 57 | DO i=1,iip1 |
---|
| 58 | ucov(i,1,l)=0. |
---|
| 59 | ucov(i,jjp1,l)=0. |
---|
| 60 | end DO |
---|
| 61 | DO j=2,jjm |
---|
| 62 | DO i=1,iim |
---|
| 63 | ucov(i,j,l) = 0.5*(u(i,j,l)+u(i,j-1,l))*cu(i,j) |
---|
| 64 | end DO |
---|
| 65 | ucov(iip1,j,l)=ucov(1,j,l) |
---|
| 66 | end DO |
---|
| 67 | end DO |
---|
[524] | 68 | |
---|
[5160] | 69 | PRINT *, 301 |
---|
[524] | 70 | |
---|
[5103] | 71 | END SUBROUTINE ugeostr |
---|