[524] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
[5246] | 4 | SUBROUTINE divgrad (klevel,h, lh, divgra ) |
---|
| 5 | IMPLICIT NONE |
---|
| 6 | ! |
---|
| 7 | !======================================================================= |
---|
| 8 | ! |
---|
| 9 | ! Auteur : P. Le Van |
---|
| 10 | ! ---------- |
---|
| 11 | ! |
---|
| 12 | ! lh |
---|
| 13 | ! calcul de (div( grad )) de h ..... |
---|
| 14 | ! h et lh sont des arguments d'entree pour le s-prog |
---|
| 15 | ! divgra est un argument de sortie pour le s-prog |
---|
| 16 | ! |
---|
| 17 | !======================================================================= |
---|
| 18 | ! |
---|
| 19 | ! declarations: |
---|
| 20 | ! ------------- |
---|
| 21 | ! |
---|
| 22 | include "dimensions.h" |
---|
| 23 | include "paramet.h" |
---|
| 24 | include "comgeom.h" |
---|
| 25 | include "comdissipn.h" |
---|
| 26 | ! |
---|
| 27 | INTEGER :: klevel |
---|
| 28 | REAL :: h( ip1jmp1,klevel ), divgra( ip1jmp1,klevel ) |
---|
| 29 | ! |
---|
| 30 | REAL :: ghy(ip1jm,llm), ghx(ip1jmp1,llm) |
---|
[524] | 31 | |
---|
[5246] | 32 | INTEGER :: l,ij,iter,lh |
---|
| 33 | ! |
---|
| 34 | ! |
---|
| 35 | ! |
---|
| 36 | CALL SCOPY ( ip1jmp1*klevel,h,1,divgra,1 ) |
---|
| 37 | ! |
---|
| 38 | DO iter = 1,lh |
---|
[524] | 39 | |
---|
[5246] | 40 | CALL filtreg ( divgra,jjp1,klevel,2,1,.true.,1 ) |
---|
[524] | 41 | |
---|
[5246] | 42 | CALL grad (klevel,divgra, ghx , ghy ) |
---|
| 43 | CALL diverg (klevel, ghx , ghy , divgra ) |
---|
[524] | 44 | |
---|
[5246] | 45 | CALL filtreg ( divgra,jjp1,klevel,2,1,.true.,1) |
---|
[524] | 46 | |
---|
[5246] | 47 | DO l = 1,klevel |
---|
| 48 | DO ij = 1, ip1jmp1 |
---|
| 49 | divgra( ij,l ) = - cdivh * divgra( ij,l ) |
---|
| 50 | END DO |
---|
| 51 | END DO |
---|
| 52 | ! |
---|
| 53 | END DO |
---|
| 54 | RETURN |
---|
| 55 | END SUBROUTINE divgrad |
---|