source: LMDZ5/trunk/libf/dyn3dmem/divgrad.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 divgrad (klevel,h, lh, divgra )
5      IMPLICIT NONE
6c
7c=======================================================================
8c
9c  Auteur :   P. Le Van
10c  ----------
11c
12c                              lh
13c      calcul de  (div( grad ))   de h  .....
14c      h  et lh  sont des arguments  d'entree pour le s-prog
15c      divgra     est  un argument  de sortie pour le s-prog
16c
17c=======================================================================
18c
19c   declarations:
20c   -------------
21c
22#include "dimensions.h"
23#include "paramet.h"
24#include "comgeom.h"
25#include "comdissipn.h"
26#include "logic.h"
27c
28      INTEGER klevel
29      REAL h( ip1jmp1,klevel ), divgra( ip1jmp1,klevel )
30c
31      REAL ghy(ip1jm,llm), ghx(ip1jmp1,llm)
32
33      INTEGER  l,ij,iter,lh
34c
35c
36c
37      CALL SCOPY ( ip1jmp1*klevel,h,1,divgra,1 )
38c
39      DO 10 iter = 1,lh
40
41      CALL filtreg ( divgra,jjp1,klevel,2,1,.true.,1  )
42
43      CALL    grad (klevel,divgra, ghx  , ghy          )
44      CALL  diverg (klevel,  ghx , ghy  , divgra       )
45
46      CALL filtreg ( divgra,jjp1,klevel,2,1,.true.,1)
47
48      DO 5 l = 1,klevel
49      DO 4  ij = 1, ip1jmp1
50      divgra( ij,l ) = - cdivh * divgra( ij,l )
51   4  CONTINUE
52   5  CONTINUE
53c
54  10  CONTINUE
55      RETURN
56      END
Note: See TracBrowser for help on using the repository browser.