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

Contents of /trunk/dyn3d/grad.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations)
Thu Jun 13 14:40:06 2019 UTC (4 years, 11 months 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 module grad_m
2
3 IMPLICIT NONE
4
5 contains
6
7 SUBROUTINE grad(klevel, g, gx, gy)
8
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 USE dimensions, ONLY: iim, jjm
15
16 INTEGER, intent(in):: klevel
17 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
20 ! Local:
21 INTEGER i, j
22
23 !----------------------------------------------------------------
24
25 forall (i = 1:iim) gx(i, :, :) = g(i + 1, :, :) - g(i, :, :)
26 gx(iim + 1, :, :)= gx(1, :, :)
27
28 forall (j = 1:jjm) gy(:, j, :) = g(:, j, :) - g(:, j + 1, :)
29
30 END SUBROUTINE grad
31
32 end module grad_m

  ViewVC Help
Powered by ViewVC 1.1.21