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

Annotation of /trunk/dyn3d/read_serre.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/read_serre.f
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 guez 139 module read_serre_m
2 guez 3
3     implicit none
4    
5 guez 112 contains
6    
7     subroutine read_serre
8    
9 guez 139 use dynetat0_m, only: clon, clat, grossismx, grossismy, dzoomx, dzoomy, &
10     taux, tauy
11 guez 112 use unit_nml_m, only: unit_nml
12 guez 127 use nr_util, only: assert, pi
13 guez 112
14 guez 127 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 guez 112
17 guez 127 namelist /serre_nml/ clon_deg, clat_deg, grossismx, grossismy, dzoomx, &
18     dzoomy, taux, tauy
19    
20 guez 112 !-------------------------------------------------
21    
22 guez 139 ! 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 guez 112 print *, "Enter namelist 'serre_nml'."
33     read(unit=*, nml=serre_nml)
34     write(unit_nml, nml=serre_nml)
35    
36 guez 113 call assert(grossismx >= 1. .and. grossismy >= 1., "read_serre grossism")
37 guez 122 call assert(dzoomx > 0., dzoomx < 1., dzoomy < 1., &
38     "read_serre dzoomx dzoomy")
39 guez 127 clon = clon_deg / 180. * pi
40     clat = clat_deg / 180. * pi
41 guez 112
42     end subroutine read_serre
43    
44 guez 139 end module read_serre_m

  ViewVC Help
Powered by ViewVC 1.1.21