source: LMDZ6/trunk/libf/dyn3d_common/nxgrad_gam.f90 @ 5431

Last change on this file since 5431 was 5285, checked in by abarral, 8 weeks 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
RevLine 
[524]1!
2! $Header$
3!
[5246]4SUBROUTINE nxgrad_gam( klevel, rot, x, y )
5  !
6  !  P. Le Van
7  !
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
13  !
[5281]14  USE comgeom_mod_h
[5271]15  USE dimensions_mod, ONLY: iim, jjm, llm, ndm
[5285]16USE paramet_mod_h
[5271]17IMPLICIT NONE
[5246]18  !
[5271]19
[5272]20
[5246]21  INTEGER :: klevel
22  REAL :: rot( ip1jm,klevel ),x( ip1jmp1,klevel ),y(ip1jm,klevel )
23  INTEGER :: l,ij
24  !
25  DO l = 1,klevel
26  !
27  DO  ij = 2, ip1jm
28  y( ij,l ) = (rot( ij,l ) - rot( ij-1,l )) * cvscuvgam( ij )
29  END DO
30  !
31  !    ..... correction pour  y ( 1,j,l )  ......
32  !
33  !    ....    y(1,j,l)= y(iip1,j,l) ....
34  !DIR$ IVDEP
35  DO  ij = 1, ip1jm, iip1
36  y( ij,l ) = y( ij +iim,l )
37  END DO
38  !
39  DO  ij = iip2,ip1jm
40  x( ij,l ) = (rot( ij,l ) - rot( ij -iip1,l )) * cuscvugam( ij )
41  END DO
42  DO ij = 1,iip1
43  x(    ij    ,l ) = 0.
44  x( ij +ip1jm,l ) = 0.
45  END DO
46  !
47  END DO
48  RETURN
49END SUBROUTINE nxgrad_gam
Note: See TracBrowser for help on using the repository browser.