Ignore:
Timestamp:
01/09/19 17:09:26 (6 years ago)
Author:
aquiquet
Message:

Sealevel is now treated as a 2D variable (sealevel_2d while sealevel remains the eustatic sea level), results should remain identical as sealevel_2d is equal to sealevel in this revision.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SOURCES/calving_frange.f90

    r224 r237  
    8989 
    9090    Hcoup(:,:) = min ( max(                                         & 
    91        (-(Bsoc0(:,:)-sealevel) - prof_plateau)/(prof_abysses-prof_plateau)    & 
     91       (-(Bsoc0(:,:)-sealevel_2d(:,:)) - prof_plateau)/(prof_abysses-prof_plateau)    & 
    9292       *(hcoup_abysses-hcoup_plateau)+hcoup_plateau               & 
    9393       , hcoup_plateau), hcoup_abysses ) 
     
    121121 
    122122    Hcoup(:,:) = min ( max(                                         & 
    123        (-(Bsoc(:,:)-sealevel) - prof_plateau)/(prof_abysses-prof_plateau)    & 
     123       (-(Bsoc(:,:)-sealevel_2d(:,:)) - prof_plateau)/(prof_abysses-prof_plateau)    & 
    124124       *(hcoup_abysses-hcoup_plateau)+hcoup_plateau               & 
    125125       , hcoup_plateau), hcoup_abysses ) 
     
    409409                      calv(i,j)=-h(i,j)  
    410410                      !cdc                     H(i,j)=1.  
    411                       !cdc 1m                     H(i,j)=min(1.,max(0.,(sealevel - Bsoc(i,j))*row/ro-0.01)) 
     411                      !cdc 1m                     H(i,j)=min(1.,max(0.,(sealevel_2d(i,j) - Bsoc(i,j))*row/ro-0.01)) 
    412412                      H(i,j)=0. 
    413                       S(i,j)=H(i,j)*(1.-ro/row) + sealevel 
     413                      S(i,j)=H(i,j)*(1.-ro/row) + sealevel_2d(i,j) !afq -- WARNING: est-ce qu'on veut vraiment mettre S a la valeur locale du niveau marin? 
    414414                      B(i,j)=S(i,j) - H(i,j) 
    415415                      ! ATTENTION ne pas mettre ice=0 sinon degradation bilan d'eau (bm et bmelt non comptabilises dans ce cas) 
     
    439439        ice(:,:)=0 
    440440        H(:,:)=0. 
    441         S(:,:)=H(:,:)*(1.-ro/row) + sealevel 
     441        S(:,:)=H(:,:)*(1.-ro/row) + sealevel_2d(:,:) !afq -- WARNING: est-ce qu'on veut vraiment mettre S a la valeur locale du niveau marin? 
    442442        B(:,:)=S(:,:) - H(:,:) 
    443443    endwhere 
Note: See TracChangeset for help on using the changeset viewer.