Changeset 102 for trunk/SOURCES/ablation_bord.f90
- Timestamp:
- 05/05/17 16:44:01 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SOURCES/ablation_bord.f90
r99 r102 32 32 ! mise a jour du masque "ice" 33 33 where (flot(:,:)) ! points flottants, sera éventuellement réévalué dans flottab 34 where(H(:,:).gt.max(Hmin,Hmin+BM(:,:)-Bmelt(:,:))) 34 !cdc 1m where(H(:,:).gt.max(Hmin,Hmin+BM(:,:)-Bmelt(:,:))) 35 where(H(:,:).gt.0.) 35 36 ice(:,:)=1 36 37 elsewhere 37 38 ice(:,:)=0 38 H(:,:)=max(1.,min(0.,(sealevel - Bsoc(:,:))*row/ro-0.01)) 39 !cdc 1m H(:,:)=max(1.,min(0.,(sealevel - Bsoc(:,:))*row/ro-0.01)) 40 H(:,:)=0. 39 41 endwhere 40 42 elsewhere ! points posés … … 47 49 48 50 51 52 53 49 54 where (ice(:,:).eq.1) ! quand glace : abl=bm-acc 50 55 ablbord(:,:)=0. 51 56 endwhere 57 !~ where (calv(:,:).LT.0.) ! il ne peut pas y avoir calving et ablbord sur un meme point 58 !~ ablbord(:,:)=0. 59 !~ endwhere 52 60 53 61 ! pour être au bord, il suffit que la somme des ice voisins soit > 0 … … 62 70 somm=ice(ip1,j)+ice(im1,j)+ice(i,jp1)+ice(i,jm1) 63 71 if (somm.gt.0.and.(ablbord(i,j).LT.0.)) then ! voisins englaces 64 ! 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 65 ! ablbord(i,j)= ablbord(i,j) - (Acc(i,j) * dt) ! Ablvrai=bmpdd-Acc-Hcalc/dt 66 ablbord(i,j)= ablbord(i,j) + ((Bmelt(i,j) - Bm(i,j)) * dt) ! version Tof : ablbord = Hcons_mass - Bm - Bmelt 72 !~ ! 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 73 !~ ! ablbord(i,j)= ablbord(i,j) - (Acc(i,j) * dt) ! Ablvrai=bmpdd-Acc-Hcalc/dt 74 !~ if (ablbord(i,j).LT.0..and.front(i,j).LE.4.and.front(i,j).GE.0) then 75 ablbord(i,j)= max(0.,ablbord(i,j) + ((Bmelt(i,j) - Bm(i,j)) * dt)) ! version Tof : ablbord = Hcons_mass - Bm - Bmelt 67 76 68 else 69 ! version cat ablbord(i,j)=hdot(i,j)-acc(i,j) ! on ne fond que ce qui est tombe + existant 70 ablbord(i,j)=0. 71 endif 72 77 else 78 !~ ! version cat ablbord(i,j)=hdot(i,j)-acc(i,j) ! on ne fond que ce qui est tombe + existant 79 ablbord(i,j)=0. 80 endif 81 else 82 ablbord(i,j)=0. 73 83 end if 74 84 end do
Note: See TracChangeset
for help on using the changeset viewer.