/[lmdze]/trunk/Sources/dyn3d/read_serre.f
ViewVC logotype

Contents of /trunk/Sources/dyn3d/read_serre.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 139 - (show annotations)
Tue May 26 17:46:03 2015 UTC (8 years, 11 months ago) by guez
File size: 1114 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 module read_serre_m
2
3 implicit none
4
5 contains
6
7 subroutine read_serre
8
9 use dynetat0_m, only: clon, clat, grossismx, grossismy, dzoomx, dzoomy, &
10 taux, tauy
11 use unit_nml_m, only: unit_nml
12 use nr_util, only: assert, pi
13
14 REAL:: clon_deg = 0. ! longitude of the center of the zoom, in degrees
15 real:: clat_deg = 0. ! latitude of the center of the zoom, in degrees
16
17 namelist /serre_nml/ clon_deg, clat_deg, grossismx, grossismy, dzoomx, &
18 dzoomy, taux, tauy
19
20 !-------------------------------------------------
21
22 ! Default values:
23 clon_deg = 0.
24 clat_deg = 0.
25 grossismx = 1.
26 grossismy = 1.
27 dzoomx = 0.2
28 dzoomy = 0.2
29 taux = 3.
30 tauy = 3.
31
32 print *, "Enter namelist 'serre_nml'."
33 read(unit=*, nml=serre_nml)
34 write(unit_nml, nml=serre_nml)
35
36 call assert(grossismx >= 1. .and. grossismy >= 1., "read_serre grossism")
37 call assert(dzoomx > 0., dzoomx < 1., dzoomy < 1., &
38 "read_serre dzoomx dzoomy")
39 clon = clon_deg / 180. * pi
40 clat = clat_deg / 180. * pi
41
42 end subroutine read_serre
43
44 end module read_serre_m

  ViewVC Help
Powered by ViewVC 1.1.21