/[lmdze]/trunk/dyn3d/Guide/coordij.f
ViewVC logotype

Annotation of /trunk/dyn3d/Guide/coordij.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/dyn3d/Guide/coordij.f
File size: 751 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 127 module coordij_m
2 guez 3
3 guez 127 IMPLICIT NONE
4 guez 3
5 guez 127 contains
6 guez 3
7 guez 127 SUBROUTINE coordij(lon, lat, ilon, jlat)
8 guez 3
9 guez 127 ! From LMDZ4/libf/dyn3d/coordij.F, version 1.1.1.1 2004/05/19 12:53:05
10 guez 3
11 guez 132 ! Calcul des coordonnées ilon et jlat de la maille scalaire dans
12     ! laquelle se trouve le point (lon, lat).
13 guez 3
14 guez 127 USE dimens_m, only: iim, jjm
15 guez 139 USE dynetat0_m, only: rlonu, rlatv
16 guez 3
17 guez 132 REAL, intent(in):: lon, lat ! in rad
18     INTEGER, intent(out):: ilon, jlat
19 guez 3
20 guez 132 !----------------------------------------------------------
21 guez 81
22 guez 132 ilon = 1
23     do while (ilon <= iim .and. rlonu(ilon) <= lon)
24     ilon = ilon + 1
25     end do
26 guez 81
27 guez 132 jlat = 1
28     do while (jlat <= jjm - 1 .and. rlatv(jlat) >= lat)
29     jlat = jlat + 1
30     end do
31 guez 81
32 guez 127 END SUBROUTINE coordij
33 guez 81
34 guez 127 end module coordij_m

  ViewVC Help
Powered by ViewVC 1.1.21