Changeset 237 for trunk/SOURCES/bilan_eau_mod.f90
- Timestamp:
- 01/09/19 17:09:26 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SOURCES/bilan_eau_mod.f90
r192 r237 45 45 subroutine init_bilan_eau 46 46 ! initialisation des variables 47 48 49 50 51 47 diff_H=0. 48 sum_H_old = sum(H(2:nx-1,2:ny-1),mask=ice(2:nx-1,2:ny-1)==1) 49 tot_water(:,:)=0. 50 bm_dt(:,:)=0. 51 bmelt_dt(:,:)=0. 52 52 alpha_flot=ro/row 53 archimtab(:,:) = Bsoc(:,:)+H(:,:)*alpha_flot - sealevel 53 archimtab(:,:) = Bsoc(:,:)+H(:,:)*alpha_flot - sealevel_2d(:,:) 54 54 gr_line(:,:)=0 55 55 do j=1,ny 56 56 do i=1,nx 57 !afq if ((H(i,j).gt.0.).and.(archimtab(i,j).GE.0.).and.(Bsoc(i,j).LE.sealevel )) then ! grounded with ice57 !afq if ((H(i,j).gt.0.).and.(archimtab(i,j).GE.0.).and.(Bsoc(i,j).LE.sealevel_2d(i,j))) then ! grounded with ice 58 58 if ((H(i,j).gt.0.).and.(archimtab(i,j).GE.0.)) then ! grounded with ice 59 59 if (archimtab(i-1,j).LT.0..and.Uxbar(i,j).LT.0..and..not.flot_marais(i-1,j)) gr_line(i,j)=1 … … 67 67 end subroutine init_bilan_eau 68 68 69 69 70 70 71 71 … … 101 101 102 102 where (ice(2:nx-1,2:ny-1).eq.1) 103 104 103 Bm_dtt(2:nx-1,2:ny-1) = Bm_dtt(2:nx-1,2:ny-1) + Bm_dt(2:nx-1,2:ny-1) !* dt ! somme Bm sur dt 104 bmelt_dtt(2:nx-1,2:ny-1) = bmelt_dtt(2:nx-1,2:ny-1) + bmelt_dt(2:nx-1,2:ny-1) ! * dt ! somme bmelt sur dt 105 105 endwhere 106 106 107 archimtab(:,:) = Bsoc(:,:)+H(:,:)*alpha_flot - sealevel 107 archimtab(:,:) = Bsoc(:,:)+H(:,:)*alpha_flot - sealevel_2d(:,:) 108 108 gr_line(:,:)=0 109 109 do j=1,ny 110 110 do i=1,nx 111 !afq if ((H(i,j).gt.0.).and.(archimtab(i,j).GE.0.).and.(Bsoc(i,j).LE.sealevel )) then ! grounded with ice111 !afq if ((H(i,j).gt.0.).and.(archimtab(i,j).GE.0.).and.(Bsoc(i,j).LE.sealevel_2d(i,j))) then ! grounded with ice 112 112 if ((H(i,j).gt.0.).and.(archimtab(i,j).GE.0.)) then ! grounded with ice 113 113 if (archimtab(i-1,j).LT.0..and.Uxbar(i,j).LT.0..and..not.flot_marais(i-1,j)) gr_line(i,j)=1 … … 141 141 142 142 ! bilan d'eau sur la grille : 143 144 143 water_bilan=sum(tot_water(:,:)) 144 diff_H = diff_H/dtt 145 145 146 146 !999 format(f0.2,1x,e15.8,1x,i10,8(1x,e15.8)) 147 147 ! write(6,999),time,sum_H,count(ice(:,:)==1),diff_H,water_bilan,sum(calv_dtt(:,:))/dtt,sum(ablbord_dtt(:,:))/dtt,sum(bmelt_dtt(:,:),mask=ice(:,:)==1)/dtt,sum(bm(:,:),mask=ice(:,:)==1),sum(Bm_dtt(:,:))/dtt,sum(bmelt_dtt(:,:))/dtt 148 148 diff_H_water_bilan(2:nx-1,2:ny-1)=tot_water(2:nx-1,2:ny-1)-diff_H_2D(2:nx-1,2:ny-1) 149 149 150 150 endif
Note: See TracChangeset
for help on using the changeset viewer.