Last change
on this file since 5185 was
5159,
checked in by abarral, 5 months ago
|
Put dimensions.h and paramet.h into modules
|
-
Property copyright set to
Name of program: LMDZ Creation date: 1984 Version: LMDZ5 License: CeCILL version 2 Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539 See the license file in the root directory
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.1 KB
|
Rev | Line | |
---|
[5099] | 1 | |
---|
[524] | 2 | ! $Header$ |
---|
[5099] | 3 | |
---|
[5106] | 4 | SUBROUTINE nxgrad(klevel, rot, x, y ) |
---|
[5159] | 5 | |
---|
[5105] | 6 | ! P. Le Van |
---|
[5159] | 7 | |
---|
[5105] | 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 |
---|
[5159] | 13 | |
---|
[5136] | 14 | USE lmdz_comgeom |
---|
| 15 | |
---|
[5159] | 16 | USE lmdz_dimensions, ONLY: iim, jjm, llm, ndm |
---|
| 17 | USE lmdz_paramet |
---|
[5105] | 18 | IMPLICIT NONE |
---|
| 19 | ! |
---|
[5159] | 20 | |
---|
| 21 | |
---|
[5105] | 22 | INTEGER :: klevel |
---|
| 23 | REAL :: rot( ip1jm,klevel ),x( ip1jmp1,klevel ),y(ip1jm,klevel ) |
---|
| 24 | INTEGER :: l,ij |
---|
[5159] | 25 | |
---|
| 26 | |
---|
[5105] | 27 | DO l = 1,klevel |
---|
[5159] | 28 | |
---|
[5105] | 29 | DO ij = 2, ip1jm |
---|
| 30 | y( ij,l ) = ( rot( ij,l ) - rot( ij-1,l ) ) * cvsurcuv( ij ) |
---|
| 31 | END DO |
---|
[5159] | 32 | |
---|
[5105] | 33 | ! ..... correction pour y ( 1,j,l ) ...... |
---|
[5159] | 34 | |
---|
[5105] | 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 |
---|
[5159] | 40 | |
---|
[5105] | 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 |
---|
[5159] | 48 | |
---|
[5105] | 49 | END DO |
---|
| 50 | RETURN |
---|
| 51 | END SUBROUTINE nxgrad |
---|
Note: See
TracBrowser
for help on using the repository browser.