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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 139 - (hide annotations)
Tue May 26 17:46:03 2015 UTC (9 years ago) by guez
Original Path: trunk/Sources/phylmd/CV3_routines/cv3_tracer.f
File size: 691 byte(s)
dynetat0 read rlonu, rlatu, rlonv, rlatv, cu_2d, cv_2d, aire_2d from
"start.nc" and then these variables were overwritten by
inigeom. Corrected this. Now, inigeom does not compute rlonu, rlatu,
rlonv and rlatv. Moreover, cu_2d, cv_2d, aire_2d are not written to
"restart.nc". Since xprimu, xprimv, xprimm025, xprimp025, rlatu1,
rlatu2, yprimu1, yprimu2 are computed at the same time as rlonu,
rlatu, rlonv, rlatv, and since it would not be convenient to separate
those computations, we decide to write xprimu, xprimv, xprimm025,
xprimp025, rlatu1, rlatu2, yprimu1, yprimu2 into "restart.nc", read
them from "start.nc" and not compute them in inigeom. So, in summary,
"start.nc" contains all the coordinates and their derivatives, and
inigeom only computes the 2D-variables.

Technical details:

Moved variables rlatu, rlonv, rlonu, rlatv, xprimu, xprimv from module
comgeom to module dynetat0_m. Upgraded local variables rlatu1,
yprimu1, rlatu2, yprimu2, xprimm025, xprimp025 of procedure inigeom to
variables of module dynetat0_m.

Removed unused local variable yprimu of procedure inigeom and
corresponding argument yyprimu of fyhyp.

Moved variables clat, clon, grossismx, grossismy, dzoomx, dzoomy,
taux, tauy from module serre to module dynetat0_m (since they are read
from "start.nc"). The default values are now defined in read_serre
instead of in the declarations. Changed name of module serre to
read_serre_m, no more module variable here.

The calls to fxhyp and fyhyp are moved from inigeom to etat0.

Side effects in programs other than gcm: etat0 and read_serre write
variables of module dynetat0; the programs test_fxyp and
test_inter_barxy need more source files.

Removed unused arguments len and nd of cv3_tracer. Removed unused
argument PPSOL of LWU.

Bug fix in test_inter_barxy: forgotten call to read_serre.

1 guez 97 module cv3_tracer_m
2 guez 47
3     implicit none
4    
5 guez 97 contains
6 guez 47
7 guez 139 SUBROUTINE cv3_tracer(nloc, ncum, na, ment, sij, da, phi)
8 guez 47
9 guez 97 implicit none
10 guez 47
11 guez 97 ! Inputs:
12 guez 139 integer, intent(in):: ncum, na, nloc
13 guez 97 real ment(nloc, na, na), sij(nloc, na, na)
14 guez 47
15 guez 97 ! Ouputs:
16     real da(nloc, na), phi(nloc, na, na)
17 guez 47
18 guez 97 ! Local variables:
19     integer i, j, k
20 guez 47
21 guez 97 !------------------------------------------------------------
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 cv3_tracer
35    
36     end module cv3_tracer_m

  ViewVC Help
Powered by ViewVC 1.1.21