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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 127 - (hide annotations)
Tue Feb 10 17:58:56 2015 UTC (9 years, 4 months ago) by guez
Original Path: trunk/dyn3d/serre.f
File size: 1358 byte(s)
clon and clat from module serre are now in rad instead of
degrees. They are only used in rad, so we do only one conversion when
we read them.

1 guez 3 module serre
2    
3     implicit none
4    
5 guez 127 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 guez 3
8 guez 119 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 guez 3
12 guez 122 real:: dzoomx = 0.2, dzoomy = 0.2
13 guez 119 ! extensions en longitude et latitude de la zone du zoom (fractions
14     ! de la zone totale)
15 guez 3
16 guez 119 real:: taux = 3., tauy = 3.
17     ! raideur de la transition de l'intérieur à l'extérieur du zoom
18    
19 guez 112 contains
20    
21     subroutine read_serre
22    
23     use unit_nml_m, only: unit_nml
24 guez 127 use nr_util, only: assert, pi
25 guez 112
26 guez 127 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 guez 112
29 guez 127 namelist /serre_nml/ clon_deg, clat_deg, grossismx, grossismy, dzoomx, &
30     dzoomy, taux, tauy
31    
32 guez 112 !-------------------------------------------------
33    
34     print *, "Enter namelist 'serre_nml'."
35     read(unit=*, nml=serre_nml)
36     write(unit_nml, nml=serre_nml)
37    
38 guez 113 call assert(grossismx >= 1. .and. grossismy >= 1., "read_serre grossism")
39 guez 122 call assert(dzoomx > 0., dzoomx < 1., dzoomy < 1., &
40     "read_serre dzoomx dzoomy")
41 guez 127 clon = clon_deg / 180. * pi
42     clat = clat_deg / 180. * pi
43 guez 112
44     end subroutine read_serre
45    
46 guez 3 end module serre

  ViewVC Help
Powered by ViewVC 1.1.21