source: LMDZ6/branches/Amaury_dev/libf/phylmd/calbeta_clim.F90 @ 5133

Last change on this file since 5133 was 5117, checked in by abarral, 5 months ago

rename modules properly lmdz_*
move some unused files to obsolete/
(lint) uppercase fortran keywords

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
File size: 1.9 KB
RevLine 
[5099]1
[1724]2! $Header: /home/cvsroot/LMDZ4/libf/phylmd/calbeta.F90,v 1.2 2007/06/22 12:49:51
3! fairhead Exp $
4
5SUBROUTINE calbeta_clim(klon,time,lat_radian,beta)
6
[2098]7  !======================================================================
8  ! Auteur(s): A.K. TRAORE
9  !======================================================================
[1724]10
[5101]11  !USE phys_local_var_mod, ONLY: ideal_beta !pour faire la variable dans le
[2098]12  ! physiq.f pour des sorties directes de beta
[1724]13
[5116]14  USE phys_cal_mod, ONLY: year_len
[5112]15  USE lmdz_print_control, ONLY: prt_level
[1724]16
[5113]17  IMPLICIT NONE
[5117]18  INTEGER klon,nt,j,it
19  REAL logbeta(klon),pi
20  REAL lat(klon),lat_radian(klon)
21  INTEGER time
22  REAL time_radian
23  REAL lat_sahel,beta(klon)
24  REAL lat_nord,lat_sud
[2101]25
[2098]26  !==============================================
[1724]27
[2098]28  pi=2.*asin(1.)
29  beta=0.
30
31  !calcul des cordonnees
32
[5103]33  ! PRINT*,'LATITUDES BETA ',lat_radian
[2098]34  time_radian=(time+15.)*2.*pi / year_len
35
[5117]36  IF (prt_level >= 1) print *, 'time_radian time', time_radian, time
[2098]37
38  lat(:)=180.*lat_radian(:)/pi !lat(:)=lat_radian(:)
39
40  lat_sahel=-5*sin(time_radian)+13
41  lat_nord=lat_sahel+25.
42  lat_sud=lat_sahel-25.
43  do j=1,klon
44     !===========
[5117]45     IF (lat(j) < 5. ) THEN
[2098]46        logbeta(j)=0.2*(lat(j)-lat_sud)-1.6
47        beta(j)=10**(logbeta(j))
48        beta(j)=max(beta(j),0.03)
49        beta(j)=min(beta(j),0.22)
[5103]50        ! PRINT*,'j,lat,lat_radian,beta',j,lat(j),lat_radian(j),beta(j)
[2098]51        !===========
52     elseif (lat(j) < 22.) then !lat(j)<22.
53
54        logbeta(j)=-0.25*(lat(j)-lat_sahel)-1.6
55        beta(j)=10**(logbeta(j))
56        beta(j)=max(beta(j),1.e-2)
57        beta(j)=min(beta(j),0.22)
[5103]58        ! PRINT*,'j,lat,lat_radian,beta',j,lat(j),lat_radian(j),beta(j)
[2098]59        !===========
60     else
61        logbeta(j)=0.25*(lat(j)-lat_nord)-1.
62        beta(j)=10**(logbeta(j))
63        beta(j)=max(beta(j),1.e-2)
64        beta(j)=min(beta(j),0.25)
[5103]65        ! PRINT*,'j,lat,lat_radian,beta',j,lat(j),lat_radian(j),beta(j)
[2098]66     endif
67     !===========
68  enddo
69
[5103]70END SUBROUTINE  calbeta_clim
Note: See TracBrowser for help on using the repository browser.