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

Contents of /trunk/dyn3d/serre.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 122 - (show annotations)
Tue Feb 3 19:30:48 2015 UTC (9 years, 3 months ago) by guez
File size: 1140 byte(s)
In procedure fxhyp_loop_ik, when testing whether xvrai is between -pi
and pi, changed back the boundaries from -pi - 1d-5 to - pi_d - 0.1
and from pi + 1d-5 to pi_d + 0.1. Fixed the logic: for ik = 1, we
rearrange longitudes between -pi and pi, if necessary. For other
values of ik, we apply the same rearrangement.

In module serre, change the default values of dzoomx and dzoomy to
0.2, because dzoomx must be > 0 when grossismx > 1.

With this revision, we recover the results of revision 120 and we
remove the bug that appeared with clon = 20.

1 module serre
2
3 implicit none
4
5 REAL:: clon = 0. ! longitude of the center of the zoom, in degrees
6 real:: clat = 0. ! latitude of the center of the zoom, in degrees
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
25
26 namelist /serre_nml/ clon, clat, grossismx, grossismy, dzoomx, dzoomy, &
27 taux, tauy
28
29 !-------------------------------------------------
30
31 print *, "Enter namelist 'serre_nml'."
32 read(unit=*, nml=serre_nml)
33 write(unit_nml, nml=serre_nml)
34
35 call assert(grossismx >= 1. .and. grossismy >= 1., "read_serre grossism")
36 call assert(dzoomx > 0., dzoomx < 1., dzoomy < 1., &
37 "read_serre dzoomx dzoomy")
38
39 end subroutine read_serre
40
41 end module serre

  ViewVC Help
Powered by ViewVC 1.1.21