Last change
on this file since 5428 was
5285,
checked in by abarral, 2 months ago
|
As discussed internally, remove generic ONLY: ... for new _mod_h 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 | |
---|
[524] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
[5246] | 4 | SUBROUTINE nxgradst (klevel,rot, x, y ) |
---|
[5281] | 5 | USE comgeom_mod_h |
---|
[5271] | 6 | USE dimensions_mod, ONLY: iim, jjm, llm, ndm |
---|
[5285] | 7 | USE paramet_mod_h |
---|
[5271] | 8 | IMPLICIT NONE |
---|
[5246] | 9 | ! Auteur : P. Le Van |
---|
| 10 | ! |
---|
| 11 | ! ******************************************************************** |
---|
| 12 | ! calcul du gradient tourne de pi/2 du rotationnel du vect.v |
---|
| 13 | ! ******************************************************************** |
---|
| 14 | ! rot est un argument d'entree pour le s-prog |
---|
| 15 | ! x et y sont des arguments de sortie pour le s-prog |
---|
| 16 | ! |
---|
[5271] | 17 | |
---|
[524] | 18 | |
---|
[5246] | 19 | INTEGER :: klevel |
---|
| 20 | REAL :: rot( ip1jm,klevel ),x( ip1jmp1,klevel ),y(ip1jm,klevel ) |
---|
| 21 | INTEGER :: l,ij |
---|
| 22 | ! |
---|
| 23 | DO l = 1,klevel |
---|
| 24 | ! |
---|
| 25 | DO ij = 2, ip1jm |
---|
| 26 | y(ij,l)=( rot(ij,l) - rot(ij-1,l)) |
---|
| 27 | END DO |
---|
| 28 | ! |
---|
| 29 | ! ..... correction pour y ( 1,j,l ) ...... |
---|
| 30 | ! |
---|
| 31 | ! .... y(1,j,l)= y(iip1,j,l) .... |
---|
[524] | 32 | |
---|
[5246] | 33 | DO ij = 1, ip1jm, iip1 |
---|
| 34 | y( ij,l ) = y( ij +iim,l ) |
---|
| 35 | END DO |
---|
| 36 | ! |
---|
| 37 | DO ij = iip2,ip1jm |
---|
| 38 | x(ij,l)= rot(ij,l)-rot(ij-iip1,l) |
---|
| 39 | END DO |
---|
| 40 | DO ij = 1,iip1 |
---|
| 41 | x( ij ,l ) = 0. |
---|
| 42 | x( ij +ip1jm,l ) = 0. |
---|
| 43 | END DO |
---|
| 44 | ! |
---|
| 45 | END DO |
---|
| 46 | RETURN |
---|
| 47 | END SUBROUTINE nxgradst |
---|
Note: See
TracBrowser
for help on using the repository browser.