/[lmdze]/trunk/phylmd/CV30_routines/cv30_tracer.f90
ViewVC logotype

Contents of /trunk/phylmd/CV30_routines/cv30_tracer.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: 719 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 cv30_tracer_m
2
3 implicit none
4
5 contains
6
7 SUBROUTINE cv30_tracer(nloc, ncum, na, ment, sij, da, phi)
8
9 ! Passive tracers.
10
11 integer, intent(in):: ncum, na, nloc
12 real, intent(in):: ment(nloc, na, na), sij(nloc, na, na)
13
14 ! Ouputs:
15 real, intent(out):: da(nloc, na)
16 real phi(nloc, na, na)
17
18 ! Local:
19 integer i, j, k
20
21 !------------------------------------------------------------
22
23 da = 0.
24
25 do j = 1, na
26 do k = 1, na
27 do i = 1, ncum
28 da(i, j) = da(i, j) + (1. - sij(i, k, j)) * ment(i, k, j)
29 phi(i, j, k) = sij(i, k, j) * ment(i, k, j)
30 end do
31 end do
32 end do
33
34 end SUBROUTINE cv30_tracer
35
36 end module cv30_tracer_m

  ViewVC Help
Powered by ViewVC 1.1.21