source: branches/iLoveclim/SOURCES/Old-sources/accum_month.f90 @ 77

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

Merge branche iLOVECLIM sur rev 76

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