source: LMDZ5/trunk/libf/dyn3dmem/rotat_nfil.F @ 1632

Last change on this file since 1632 was 1632, checked in by Laurent Fairhead, 12 years ago

Import initial du répertoire dyn3dmem

Attention! ceci n'est qu'une version préliminaire du code "basse mémoire":
le code contenu dans ce répertoire est basé sur la r1320 et a donc besoin
d'être mis à jour par rapport à la dynamique parallèle d'aujourd'hui.
Ce code est toutefois mis à disposition pour circonvenir à des problèmes
de mémoire que certaines configurations du modèle pourraient rencontrer.
Dans l'état, il compile et tourne sur vargas et au CCRT


Initial import of dyn3dmem

Warning! this is just a preliminary version of the memory light code:
it is based on r1320 of the code and thus needs to be updated before
it can replace the present dyn3dpar code. It is nevertheless put at your
disposal to circumvent some memory problems some LMDZ configurations may
encounter. In its present state, it will compile and run on vargas and CCRT

File size: 1.2 KB
Line 
1!
2! $Header$
3!
4      SUBROUTINE rotat_nfil (klevel, x, y, rot )
5c
6c    Auteur :   P.Le Van
7c**************************************************************
8c.          Calcule le rotationnel  non filtre   ,
9c      a tous les niveaux d'1 vecteur de comp. x et y ..
10c       x  et  y etant des composantes  covariantes  ...
11c********************************************************************
12c   klevel, x  et y   sont des arguments d'entree pour le s-prog
13c        rot          est  un argument  de sortie pour le s-prog
14c
15      IMPLICIT NONE
16c
17#include "dimensions.h"
18#include "paramet.h"
19#include "comgeom.h"
20c
21c   .....  variables en arguments  ......
22c
23      INTEGER klevel
24      REAL rot( ip1jm,klevel )
25      REAL x( ip1jmp1,klevel ), y( ip1jm,klevel )
26c
27c  ...   variables  locales  ...
28c
29      INTEGER  l, ij
30c
31c
32      DO  10 l = 1,klevel
33c
34        DO   ij = 1, ip1jm - 1
35         rot( ij,l )  =    y( ij+1 , l )  -  y( ij,l )   +
36     *                   x(ij +iip1, l )  -  x( ij,l ) 
37        ENDDO
38c
39c    .... correction pour rot( iip1,j,l)  ....
40c    ....   rot(iip1,j,l)= rot(1,j,l) ...
41CDIR$ IVDEP
42        DO  ij = iip1, ip1jm, iip1
43         rot( ij,l ) = rot( ij -iim,l )
44        ENDDO
45c
46  10  CONTINUE
47
48      RETURN
49      END
Note: See TracBrowser for help on using the repository browser.