/[lmdze]/trunk/Sources/phylmd/CV30_routines/cv30_tracer.f
ViewVC logotype

Contents of /trunk/Sources/phylmd/CV30_routines/cv30_tracer.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 189 - (show annotations)
Tue Mar 29 15:20:23 2016 UTC (8 years, 1 month ago) by guez
File size: 719 byte(s)
There was a function gr_phy_write_3d in dyn3d and a function
gr_phy_write_2d in module grid_change. Moved them into a new module
gr_phy_write_m under a generic interface gr_phy_write. Replaced calls
to gr_fi_ecrit by calls to gr_phy_write.

Removed arguments len, nloc and nd of cv30_compress.

Removed arguments wd and wd1 of cv30_uncompress, wd of cv30_yield, wd
of concvl, wd1 of cv_driver. Was just filled with 0. Removed option
ok_gust in physiq, never used.

In cv30_unsat, cv30_yield and cv_driver, we only need to define b to
level nl - 1.

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