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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 134 - (show annotations)
Wed Apr 29 15:47:56 2015 UTC (9 years ago) by guez
File size: 1358 byte(s)
Sources inside, compilation outside.
1 module serre
2
3 implicit none
4
5 REAL:: clon = 0. ! longitude of the center of the zoom, in rad
6 real:: clat = 0. ! latitude of the center of the zoom, in rad
7
8 real:: grossismx = 1., grossismy = 1.
9 ! facteurs de grossissement du zoom, selon la longitude et la latitude
10 ! = 2 si 2 fois, = 3 si 3 fois, etc.
11
12 real:: dzoomx = 0.2, dzoomy = 0.2
13 ! extensions en longitude et latitude de la zone du zoom (fractions
14 ! de la zone totale)
15
16 real:: taux = 3., tauy = 3.
17 ! raideur de la transition de l'intérieur à l'extérieur du zoom
18
19 contains
20
21 subroutine read_serre
22
23 use unit_nml_m, only: unit_nml
24 use nr_util, only: assert, pi
25
26 REAL:: clon_deg = 0. ! longitude of the center of the zoom, in degrees
27 real:: clat_deg = 0. ! latitude of the center of the zoom, in degrees
28
29 namelist /serre_nml/ clon_deg, clat_deg, grossismx, grossismy, dzoomx, &
30 dzoomy, taux, tauy
31
32 !-------------------------------------------------
33
34 print *, "Enter namelist 'serre_nml'."
35 read(unit=*, nml=serre_nml)
36 write(unit_nml, nml=serre_nml)
37
38 call assert(grossismx >= 1. .and. grossismy >= 1., "read_serre grossism")
39 call assert(dzoomx > 0., dzoomx < 1., dzoomy < 1., &
40 "read_serre dzoomx dzoomy")
41 clon = clon_deg / 180. * pi
42 clat = clat_deg / 180. * pi
43
44 end subroutine read_serre
45
46 end module serre

  ViewVC Help
Powered by ViewVC 1.1.21