source: trunk/SOURCES/Old-sources/accum_month_lapsecouche.f90 @ 62

Last change on this file since 62 was 62, checked in by dumas, 8 years ago

Move unused sources files in Old-sources directory

File size: 1.5 KB
Line 
1subroutine accum_month_lapsecouche()
2
3! --------------------------------------------------------------------
4!      Accumulation mensuelle
5!
6!                   Vincent & Flo Oct 07 corrige avec Cat octobre 2008
7!---------------------------------------------------------------------
8
9use declare_month_lapsecouche
10!use climat_forcage_mois_mod
11
12implicit none
13
14real :: SLMIN
15real :: precipit
16
17!      real Tm_surf(nx,ny,mois+1) !! variable du moduel climat-stat
18!      include  '3D-1.h'
19
20if (itracebug.eq.1) write(num_tracebug,*)' passage dans accum_month'
21
22
23precip(:,:)=0.
24
25! Tm_surf et Pm_surf sont les valeurs au temps time,
26! apres corrections de topographie vers l'altitude
27! courante de la surface
28
29do j=1,ny
30   do i=1,nx
31
32      do mo=1,mois                          ! boucle sur les mois
33         do k=1,4                           ! 4 increments par mois
34
35            temp=Tm_surf(i,j,mo)+                               &
36                 k/4 * (Tm_surf(i,j,mo+1)-Tm_surf(i,j,mo))
37
38            precipit=Pm_surf(i,j,mo)+                           &
39                 k/4 * (Pm_surf(i,j,mo+1)-Pm_surf(i,j,mo))
40
41
42            if (temp.le.psolid) then
43               precip(i,j)=precip(i,j)+precipit
44            end if
45         end do
46      end do ! fin boucle sur les mois
47
48        precip(i,j)=precip(i,j)/48.                 ! fraction de l'annee avec neige
49     end do
50  end do
51
52acc(:,:)=precip(:,:)
53
54
55!  Ci dessus : chaque 1/4 de mois, on calcule la precipitation neigeuse
56!  et on somme les precipitation neigeuses.
57
58
59end subroutine accum_month_lapsecouche
Note: See TracBrowser for help on using the repository browser.