[5099] | 1 | |
---|
[1632] | 2 | ! $Header$ |
---|
[5099] | 3 | |
---|
[5105] | 4 | SUBROUTINE covnat_loc(klevel,ucov, vcov, unat, vnat ) |
---|
| 5 | USE parallel_lmdz |
---|
[5136] | 6 | USE lmdz_comgeom |
---|
| 7 | |
---|
[5159] | 8 | USE lmdz_dimensions, ONLY: iim, jjm, llm, ndm |
---|
| 9 | USE lmdz_paramet |
---|
[5105] | 10 | IMPLICIT NONE |
---|
[1632] | 11 | |
---|
[5105] | 12 | !======================================================================= |
---|
[5159] | 13 | |
---|
[5105] | 14 | ! Auteur: F Hourdin Phu LeVan |
---|
| 15 | ! ------- |
---|
[5159] | 16 | |
---|
[5105] | 17 | ! Objet: |
---|
| 18 | ! ------ |
---|
[5159] | 19 | |
---|
[5105] | 20 | ! ********************************************************************* |
---|
| 21 | ! calcul des compos. naturelles a partir des comp.covariantes |
---|
| 22 | ! ******************************************************************** |
---|
[5159] | 23 | |
---|
[5105] | 24 | !======================================================================= |
---|
[1632] | 25 | |
---|
| 26 | |
---|
[5159] | 27 | |
---|
| 28 | |
---|
[5105] | 29 | INTEGER :: klevel |
---|
| 30 | REAL :: ucov( ijb_u:ije_u,klevel ), vcov( ijb_v:ije_v,klevel ) |
---|
| 31 | REAL :: unat( ijb_u:ije_u,klevel ), vnat( ijb_v:ije_v,klevel ) |
---|
| 32 | INTEGER :: l,ij |
---|
| 33 | INTEGER :: ijb,ije |
---|
[1632] | 34 | |
---|
[5105] | 35 | |
---|
| 36 | ijb=ij_begin |
---|
| 37 | ije=ij_end |
---|
| 38 | |
---|
[5117] | 39 | IF (pole_nord) THEN |
---|
[5105] | 40 | !$OMP DO SCHEDULE(STATIC,OMP_CHUNK) |
---|
| 41 | DO l = 1,klevel |
---|
| 42 | DO ij = 1, iip1 |
---|
| 43 | unat (ij,l) =0. |
---|
| 44 | END DO |
---|
| 45 | ENDDO |
---|
[1632] | 46 | !$OMP ENDDO NOWAIT |
---|
[5117] | 47 | ENDIF |
---|
[1632] | 48 | |
---|
[5117] | 49 | IF (pole_sud) THEN |
---|
[5105] | 50 | !$OMP DO SCHEDULE(STATIC,OMP_CHUNK) |
---|
| 51 | DO l = 1,klevel |
---|
| 52 | DO ij = ip1jm+1, ip1jmp1 |
---|
| 53 | unat (ij,l) =0. |
---|
| 54 | END DO |
---|
| 55 | ENDDO |
---|
[1632] | 56 | !$OMP ENDDO NOWAIT |
---|
[5117] | 57 | ENDIF |
---|
[1632] | 58 | |
---|
[5105] | 59 | ijb=ij_begin |
---|
| 60 | ije=ij_end |
---|
[5117] | 61 | IF (pole_nord) ijb=ij_begin+iip1 |
---|
| 62 | IF (pole_sud) ije=ij_end-iip1 |
---|
[5105] | 63 | |
---|
| 64 | !$OMP DO SCHEDULE(STATIC,OMP_CHUNK) |
---|
| 65 | DO l = 1,klevel |
---|
| 66 | DO ij = ijb, ije |
---|
| 67 | unat( ij,l ) = ucov( ij,l ) / cu(ij) |
---|
| 68 | ENDDO |
---|
| 69 | END DO |
---|
[1632] | 70 | !$OMP ENDDO NOWAIT |
---|
| 71 | |
---|
[5105] | 72 | ijb=ij_begin-iip1 |
---|
| 73 | ije=ij_end |
---|
[5117] | 74 | IF (pole_nord) ijb=ij_begin |
---|
| 75 | IF (pole_sud) ije=ij_end-iip1 |
---|
[5105] | 76 | |
---|
| 77 | !$OMP DO SCHEDULE(STATIC,OMP_CHUNK) |
---|
| 78 | DO l = 1,klevel |
---|
| 79 | DO ij = ijb,ije |
---|
| 80 | vnat( ij,l ) = vcov( ij,l ) / cv(ij) |
---|
| 81 | ENDDO |
---|
| 82 | ENDDO |
---|
[1632] | 83 | !$OMP ENDDO NOWAIT |
---|
[5105] | 84 | |
---|
| 85 | |
---|
| 86 | END SUBROUTINE covnat_loc |
---|