1 | ! |
---|
2 | ! $Header$ |
---|
3 | ! |
---|
4 | SUBROUTINE nxgrad (klevel, rot, x, y ) |
---|
5 | ! |
---|
6 | ! P. Le Van |
---|
7 | ! |
---|
8 | ! ******************************************************************** |
---|
9 | ! calcul du gradient tourne de pi/2 du rotationnel du vect.v |
---|
10 | ! ******************************************************************** |
---|
11 | ! rot est un argument d'entree pour le s-prog |
---|
12 | ! x et y sont des arguments de sortie pour le s-prog |
---|
13 | ! |
---|
14 | USE dimensions_mod, ONLY: iim, jjm, llm, ndm |
---|
15 | USE paramet_mod_h, ONLY: iip1, iip2, iip3, jjp1, llmp1, llmp2, llmm1, kftd, ip1jm, ip1jmp1, & |
---|
16 | ip1jmi1, ijp1llm, ijmllm, mvar, jcfil, jcfllm |
---|
17 | IMPLICIT NONE |
---|
18 | ! |
---|
19 | |
---|
20 | |
---|
21 | INCLUDE "comgeom.h" |
---|
22 | INTEGER :: klevel |
---|
23 | REAL :: rot( ip1jm,klevel ),x( ip1jmp1,klevel ),y(ip1jm,klevel ) |
---|
24 | INTEGER :: l,ij |
---|
25 | ! |
---|
26 | ! |
---|
27 | DO l = 1,klevel |
---|
28 | ! |
---|
29 | DO ij = 2, ip1jm |
---|
30 | y( ij,l ) = ( rot( ij,l ) - rot( ij-1,l ) ) * cvsurcuv( ij ) |
---|
31 | END DO |
---|
32 | ! |
---|
33 | ! ..... correction pour y ( 1,j,l ) ...... |
---|
34 | ! |
---|
35 | ! .... y(1,j,l)= y(iip1,j,l) .... |
---|
36 | !DIR$ IVDEP |
---|
37 | DO ij = 1, ip1jm, iip1 |
---|
38 | y( ij,l ) = y( ij +iim,l ) |
---|
39 | END DO |
---|
40 | ! |
---|
41 | DO ij = iip2,ip1jm |
---|
42 | x( ij,l ) = ( rot( ij,l ) - rot( ij -iip1,l ) ) * cusurcvu( ij ) |
---|
43 | END DO |
---|
44 | DO ij = 1,iip1 |
---|
45 | x( ij ,l ) = 0. |
---|
46 | x( ij +ip1jm,l ) = 0. |
---|
47 | END DO |
---|
48 | ! |
---|
49 | END DO |
---|
50 | RETURN |
---|
51 | END SUBROUTINE nxgrad |
---|