/[lmdze]/trunk/dyn3d/grad.f90
ViewVC logotype

Annotation of /trunk/dyn3d/grad.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (hide annotations)
Thu Jun 13 14:40:06 2019 UTC (5 years ago) by guez
File size: 750 byte(s)
Change all `.f` suffixes to `.f90`. (The opposite was done in revision
82.)  Because of change of philosopy in GNUmakefile: we already had a
rewritten rule for `.f`, so it does not make the makefile longer to
replace it by a rule for `.f90`. And it spares us options of
makedepf90 and of the compiler. Also we prepare the way for a simpler
`CMakeLists.txt`.

1 guez 60 module grad_m
2    
3     IMPLICIT NONE
4    
5     contains
6    
7 guez 65 SUBROUTINE grad(klevel, g, gx, gy)
8 guez 60
9     ! From LMDZ4/libf/dyn3d/grad.F, version 1.1.1.1 2004/05/19 12:53:05
10     ! P. Le Van
11    
12     ! Calcul des composantes covariantes en x et y du gradient de g.
13    
14 guez 265 USE dimensions, ONLY: iim, jjm
15 guez 60
16     INTEGER, intent(in):: klevel
17 guez 103 REAL, intent(in):: g(iim + 1, jjm + 1, klevel)
18     REAL, intent(out):: gx(iim + 1, jjm + 1, klevel) , gy(iim + 1, jjm, klevel)
19 guez 60
20     ! Local:
21 guez 103 INTEGER i, j
22 guez 60
23     !----------------------------------------------------------------
24    
25 guez 103 forall (i = 1:iim) gx(i, :, :) = g(i + 1, :, :) - g(i, :, :)
26     gx(iim + 1, :, :)= gx(1, :, :)
27 guez 60
28 guez 103 forall (j = 1:jjm) gy(:, j, :) = g(:, j, :) - g(:, j + 1, :)
29 guez 60
30     END SUBROUTINE grad
31    
32     end module grad_m

  ViewVC Help
Powered by ViewVC 1.1.21