Last change
on this file since 5140 was
5105,
checked in by abarral, 4 months ago
|
Replace 1DUTILS.h by module lmdz_1dutils.f90
Replace 1DConv.h by module lmdz_old_1dconv.f90 (it's only used by old_* files)
Convert *.F to *.f90
Fix gradsdef.h formatting
Remove unnecessary "RETURN" at the end of functions/subroutines
|
-
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.0 KB
|
Rev | Line | |
---|
[5099] | 1 | |
---|
[524] | 2 | ! $Header$ |
---|
[5099] | 3 | |
---|
[5105] | 4 | SUBROUTINE grad(klevel, pg,pgx,pgy ) |
---|
| 5 | ! |
---|
| 6 | ! P. Le Van |
---|
| 7 | ! |
---|
| 8 | ! ****************************************************************** |
---|
| 9 | ! .. calcul des composantes covariantes en x et y du gradient de g |
---|
| 10 | ! |
---|
| 11 | ! ****************************************************************** |
---|
| 12 | ! pg est un argument d'entree pour le s-prog |
---|
| 13 | ! pgx et pgy sont des arguments de sortie pour le s-prog |
---|
| 14 | ! |
---|
| 15 | IMPLICIT NONE |
---|
| 16 | ! |
---|
| 17 | INCLUDE "dimensions.h" |
---|
| 18 | INCLUDE "paramet.h" |
---|
| 19 | INTEGER :: klevel |
---|
| 20 | REAL :: pg( ip1jmp1,klevel ) |
---|
| 21 | REAL :: pgx( ip1jmp1,klevel ) , pgy( ip1jm,klevel ) |
---|
| 22 | INTEGER :: l,ij |
---|
| 23 | ! |
---|
| 24 | ! |
---|
| 25 | DO l = 1,klevel |
---|
| 26 | ! |
---|
| 27 | DO ij = 1, ip1jmp1 - 1 |
---|
| 28 | pgx( ij,l ) = pg( ij +1,l ) - pg( ij,l ) |
---|
| 29 | END DO |
---|
| 30 | ! |
---|
| 31 | ! .... correction pour pgx(ip1,j,l) .... |
---|
| 32 | ! ... pgx(iip1,j,l)= pgx(1,j,l) .... |
---|
| 33 | !DIR$ IVDEP |
---|
| 34 | DO ij = iip1, ip1jmp1, iip1 |
---|
| 35 | pgx( ij,l ) = pgx( ij -iim,l ) |
---|
| 36 | END DO |
---|
| 37 | ! |
---|
| 38 | DO ij = 1,ip1jm |
---|
| 39 | pgy( ij,l ) = pg( ij,l ) - pg( ij +iip1,l ) |
---|
| 40 | END DO |
---|
| 41 | ! |
---|
| 42 | END DO |
---|
| 43 | RETURN |
---|
| 44 | END SUBROUTINE grad |
---|
Note: See
TracBrowser
for help on using the repository browser.