source: branches/iLoveclim/SOURCES/ablation_bord.f90 @ 146

Last change on this file since 146 was 146, checked in by aquiquet, 7 years ago

Grisli-iLoveclim branch: merged to trunk at revision 145

File size: 1.9 KB
Line 
1!> \file ablation_bord.f90
2!! Clacul de l'ablation sur le bord
3!<
4     
5
6!> SUBROUTINE: Ablation_bord
7!! Calcule l'ablation pour les points du bord
8!! \author ...
9!! \date ....
10!! @note cas des bords de calotte : un point du bord peut perdre en plus la glace
11!! amenée par l'écoulement.
12!! @note Calcule l'ablation pour les points du bord avec H=0 mais apport par l'amont
13!! diagnostic pour la fermeture du bilan d'eau
14!! par convention ablation negative dans la zone d'ablation
15!! @note Used modules:
16!! @note  - use module3D_phy
17!>
18
19subroutine ablation_bord
20
21
22use module3D_phy
23implicit none
24integer :: ip1,im1,jp1,jm1   ! pour chercher les voisins
25integer :: somm
26
27! Dans les zones ou le calcul icethick a donne un H negatif : ablbord=H
28
29! pour être au bord, il suffit que la somme des ice voisins soit > 0
30do j=1,ny
31   do i=1,nx
32      if (ice(i,j).eq.0) then   ! seulment pour les noeuds sans glace
33         im1=max(i-1,1)
34         jm1=max(j-1,1)
35         ip1=min(i+1,nx)
36         jp1=min(j+1,ny)
37
38         somm=ice(ip1,j)+ice(im1,j)+ice(i,jp1)+ice(i,jm1)
39         if (somm.gt.0.and.(ablbord(i,j).LT.0.)) then                               ! voisins englaces
40!~ !         if (somm.gt.0.and.((ablbord(i,j).LT.0.).OR.(flot(ip1,j).OR.flot(im1,j).OR.flot(i,jp1).OR.flot(i,jm1)))) then   ! voisins englaces
41!~ !            ablbord(i,j)= ablbord(i,j) - (Acc(i,j) * dt)     !  Ablvrai=bmpdd-Acc-Hcalc/dt
42!~           if (ablbord(i,j).LT.0..and.front(i,j).LE.4.and.front(i,j).GE.0) then
43            ablbord(i,j)= max(0.,ablbord(i,j) + ((Bmelt(i,j) - Bm(i,j)) * dt))  ! version Tof : ablbord = Hcons_mass - Bm - Bmelt
44
45          else
46!~ ! version cat            ablbord(i,j)=hdot(i,j)-acc(i,j)   ! on ne fond que ce qui est tombe + existant
47                                                ablbord(i,j)=0.
48          endif
49        else
50                      ablbord(i,j)=0.
51      end if
52   end do
53end do
54
55ablbord_dtt(:,:) = ablbord_dtt(:,:) + ablbord(:,:)
56
57!cdc deplace dans bilan_flux_output_mod ablbord(:,:)=0.
58
59end subroutine ablation_bord
Note: See TracBrowser for help on using the repository browser.