Ignore:
Timestamp:
10/20/17 09:31:39 (7 years ago)
Author:
aquiquet
Message:

Grisli-iLoveclim branch: merged to trunk at revision 145

Location:
branches/iLoveclim
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/iLoveclim

  • branches/iLoveclim/SOURCES/conserv-mass-adv-diff_sept2009_mod.f90

    r123 r146  
    416416 
    417417!    if ((time.lt.time_gl(1)).or.(nt.lt.2)) then      ATTENTION test seulement si version prescribe-H_mod.f90 
    418        call prescribe_present_H_gl       ! prescribe present thickness at the grounding line 
     418   if (ibmelt_inv.eq.0) then 
     419      call prescribe_present_H_gl       ! prescribe present thickness at the grounding line 
     420   else if (ibmelt_inv.eq.1) then ! inversion bmelt 
     421      call prescribe_present_H_gl_bmelt ! prescribe only grounding line points 
     422   else 
     423      print*,'ibmelt_inv value must be 0 or 1 !!!' 
     424      stop 
     425   endif 
    419426!    else 
    420427!       call prescribe_retreat 
     
    550557H(:,:)=max(H(:,:),0.)       ! pas d'epaisseur negative 
    551558 
    552 !~ ! calcul du masque "ice" 
    553 !~ where (flot(:,:))        ! points flottants, sera éventuellement réévalué dans flottab 
    554 !~    where(H(:,:).gt.max(Hmin,Hmin+BM(:,:)-Bmelt(:,:))) 
    555 !~       ice(:,:)=1 
    556 !~    elsewhere 
    557 !~       ice(:,:)=0 
    558 !~       H(:,:)=max(1.,min(0.,(sealevel - Bsoc(:,:))*row/ro-0.01)) 
    559 !~    endwhere 
    560 !~ !   H(:,:)=max(H(:,:),1.) ! dans la partie marine l'épaisseur mini est 1 m 
    561 !~ !   H(:,:)=max(1.,min(0.,(sealevel - Bsoc(:,:))*row/ro-0.01)) 
    562 !~ elsewhere                ! points posés 
    563 !~    where(H(:,:).gt.0.) 
    564 !~       ice(:,:)=1 
    565 !~    elsewhere 
    566 !~       ice(:,:)=0 
    567 !~    endwhere 
    568 !~ endwhere 
    569  
    570559! eventuellement retirer apres spinup ou avoir un cas serac 
    571560Hdot(:,:)=(H(:,:)-vieuxH(:,:))/dt 
    572561!$OMP END WORKSHARE 
    573562 
    574 !~ if (igrdline.ne.3) then 
    575 !~    !$OMP WORKSHARE 
    576 !~    Hdot(:,:)=min(Hdot(:,:),10.) 
    577 !~    Hdot(:,:)=max(Hdot(:,:),-10.) 
    578 !~    !$OMP END WORKSHARE 
    579 !~ endif 
     563if (ibmelt_inv.eq.1) then ! inversion du bmelt avec igrdline=1 
     564   !$OMP WORKSHARE 
     565   where (i_Hp(:,:).eq.1) 
     566      H(:,:)=Hp(:,:) 
     567   endwhere 
     568   !$OMP END WORKSHARE 
     569endif 
    580570 
    581571!$OMP WORKSHARE 
    582 where (i_hp(:,:).ne.1) 
    583    H(:,:)=vieuxH(:,:)+Hdot(:,:)*dt 
    584 end where 
    585  
    586  
    587  
    588572! si mk0=-1, on garde l'epaisseur precedente 
    589573! en attendant un masque plus propre 
Note: See TracChangeset for help on using the changeset viewer.