[524] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
[5246] | 4 | SUBROUTINE gradiv(klevel, xcov, ycov, ld, gdx, gdy ) |
---|
| 5 | ! |
---|
| 6 | ! Auteur : P. Le Van |
---|
| 7 | ! |
---|
| 8 | ! *************************************************************** |
---|
| 9 | ! |
---|
| 10 | ! ld |
---|
| 11 | ! calcul de (grad (div) ) du vect. v .... |
---|
| 12 | ! |
---|
| 13 | ! xcov et ycov etant les composant.covariantes de v |
---|
| 14 | ! **************************************************************** |
---|
| 15 | ! xcov , ycov et ld sont des arguments d'entree pour le s-prog |
---|
| 16 | ! gdx et gdy sont des arguments de sortie pour le s-prog |
---|
| 17 | ! |
---|
| 18 | ! |
---|
[5271] | 19 | USE dimensions_mod, ONLY: iim, jjm, llm, ndm |
---|
[5272] | 20 | USE paramet_mod_h, ONLY: iip1, iip2, iip3, jjp1, llmp1, llmp2, llmm1, kftd, ip1jm, ip1jmp1, & |
---|
| 21 | ip1jmi1, ijp1llm, ijmllm, mvar, jcfil, jcfllm |
---|
[5271] | 22 | IMPLICIT NONE |
---|
[5246] | 23 | ! |
---|
[5271] | 24 | |
---|
[5272] | 25 | |
---|
[5246] | 26 | include "comdissipn.h" |
---|
[524] | 27 | |
---|
[5246] | 28 | INTEGER :: klevel |
---|
| 29 | ! |
---|
| 30 | REAL :: xcov( ip1jmp1,klevel ), ycov( ip1jm,klevel ) |
---|
| 31 | REAL :: gdx( ip1jmp1,klevel ), gdy( ip1jm,klevel ) |
---|
[524] | 32 | |
---|
[5246] | 33 | REAL :: div(ip1jmp1,llm) |
---|
[524] | 34 | |
---|
[5246] | 35 | INTEGER :: l,ij,iter,ld |
---|
| 36 | ! |
---|
| 37 | ! |
---|
| 38 | ! |
---|
| 39 | CALL SCOPY( ip1jmp1*klevel,xcov,1,gdx,1 ) |
---|
| 40 | CALL SCOPY( ip1jm*klevel, ycov,1,gdy,1 ) |
---|
| 41 | ! |
---|
| 42 | DO iter = 1,ld |
---|
| 43 | ! |
---|
| 44 | CALL diverg( klevel, gdx , gdy, div ) |
---|
| 45 | CALL filtreg( div, jjp1, klevel, 2,1, .true.,2 ) |
---|
| 46 | CALL grad( klevel, div, gdx, gdy ) |
---|
| 47 | ! |
---|
| 48 | DO l = 1, klevel |
---|
| 49 | DO ij = 1, ip1jmp1 |
---|
| 50 | gdx( ij,l ) = - gdx( ij,l ) * cdivu |
---|
| 51 | END DO |
---|
| 52 | DO ij = 1, ip1jm |
---|
| 53 | gdy( ij,l ) = - gdy( ij,l ) * cdivu |
---|
| 54 | END DO |
---|
| 55 | END DO |
---|
| 56 | ! |
---|
| 57 | END DO |
---|
| 58 | RETURN |
---|
| 59 | END SUBROUTINE gradiv |
---|