[524] | 1 | ! $Header$ |
---|
[5099] | 2 | |
---|
[5119] | 3 | SUBROUTINE nxgraro2(klevel, xcov, ycov, lr, grx, gry) |
---|
[5105] | 4 | ! |
---|
| 5 | ! P.Le Van . |
---|
| 6 | ! *********************************************************** |
---|
| 7 | ! lr |
---|
| 8 | ! calcul de ( nxgrad (rot) ) du vect. v .... |
---|
| 9 | ! |
---|
| 10 | ! xcov et ycov etant les compos. covariantes de v |
---|
| 11 | ! *********************************************************** |
---|
| 12 | ! xcov , ycov et lr sont des arguments d'entree pour le s-prog |
---|
| 13 | ! grx et gry sont des arguments de sortie pour le s-prog |
---|
| 14 | ! |
---|
| 15 | ! |
---|
[5106] | 16 | USE lmdz_filtreg, ONLY: filtreg |
---|
[5119] | 17 | USE lmdz_ssum_scopy, ONLY: scopy |
---|
[5134] | 18 | USE lmdz_comdissipn, ONLY: tetaudiv, tetaurot, tetah, cdivu, crot, cdivh |
---|
[5119] | 19 | |
---|
[5105] | 20 | IMPLICIT NONE |
---|
| 21 | ! |
---|
| 22 | INCLUDE "dimensions.h" |
---|
| 23 | INCLUDE "paramet.h" |
---|
| 24 | ! |
---|
| 25 | ! ...... variables en arguments ....... |
---|
| 26 | ! |
---|
| 27 | INTEGER :: klevel |
---|
[5119] | 28 | REAL :: xcov(ip1jmp1, klevel), ycov(ip1jm, klevel) |
---|
| 29 | REAL :: grx(ip1jmp1, klevel), gry(ip1jm, klevel) |
---|
[5105] | 30 | ! |
---|
| 31 | ! ...... variables locales ........ |
---|
| 32 | ! |
---|
[5119] | 33 | REAL :: rot(ip1jm, llm), signe, nugradrs |
---|
| 34 | INTEGER :: l, ij, iter, lr |
---|
[5105] | 35 | ! ........................................................ |
---|
| 36 | ! |
---|
| 37 | ! |
---|
| 38 | ! |
---|
[5119] | 39 | signe = (-1.)**lr |
---|
[5105] | 40 | nugradrs = signe * crot |
---|
| 41 | ! |
---|
[5119] | 42 | CALL SCOPY (ip1jmp1 * klevel, xcov, 1, grx, 1) |
---|
| 43 | CALL SCOPY (ip1jm * klevel, ycov, 1, gry, 1) |
---|
[5105] | 44 | ! |
---|
[5119] | 45 | CALL rotatf (klevel, grx, gry, rot) |
---|
[5105] | 46 | ! |
---|
[5119] | 47 | CALL laplacien_rot (klevel, rot, rot, grx, gry) |
---|
[524] | 48 | |
---|
[5105] | 49 | ! |
---|
| 50 | ! ..... Iteration de l'operateur laplacien_rotgam ..... |
---|
| 51 | ! |
---|
[5119] | 52 | DO iter = 1, lr - 2 |
---|
| 53 | CALL laplacien_rotgam (klevel, rot, rot) |
---|
[5105] | 54 | ENDDO |
---|
| 55 | ! |
---|
| 56 | ! |
---|
[5119] | 57 | CALL filtreg(rot, jjm, klevel, 2, 1, .FALSE., 1) |
---|
| 58 | CALL nxgrad (klevel, rot, grx, gry) |
---|
[5105] | 59 | ! |
---|
| 60 | DO l = 1, klevel |
---|
[5119] | 61 | DO ij = 1, ip1jm |
---|
| 62 | gry(ij, l) = gry(ij, l) * nugradrs |
---|
| 63 | ENDDO |
---|
| 64 | DO ij = 1, ip1jmp1 |
---|
| 65 | grx(ij, l) = grx(ij, l) * nugradrs |
---|
| 66 | ENDDO |
---|
[5105] | 67 | ENDDO |
---|
| 68 | ! |
---|
| 69 | RETURN |
---|
| 70 | END SUBROUTINE nxgraro2 |
---|