New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 914 for trunk/NEMO/OPA_SRC/SBC/sbcice_lim.F90 – NEMO

Ignore:
Timestamp:
2008-04-30T16:30:23+02:00 (16 years ago)
Author:
ctlod
Message:

move the set to zero of qsr(:,:) (when more than 50% of sea-ice) from sbcblk_clio.F90 into sbcice_lim*, see ticket: #131

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/SBC/sbcice_lim.F90

    r906 r914  
    5252   USE in_out_manager  ! I/O manager 
    5353   USE prtctl          ! Print control 
     54   USE ocfzpt          ! ocean freezing point 
    5455 
    5556   IMPLICIT NONE 
     
    99100      INTEGER  ::   alert_id           ! number of the current alert 
    100101      REAL(wp) ::   ztmelts            ! ice layer melting point 
    101       INTEGER , DIMENSION(20) ::  numal                     ! number of alerts positive 
     102      REAL(wp) ::   zinda     
     103      INTEGER , DIMENSION(20) ::  numal                  ! number of alerts positive 
    102104      CHARACTER (len=30), DIMENSION(20) ::   alname      ! name of alert 
    103105      REAL(wp), DIMENSION(jpi,jpj,jpl) ::   alb_ice_os   ! albedo of the ice under overcast sky 
     
    159161               &                             tprecip  , sprecip   ,                        & 
    160162               &                             fr1_i0   , fr2_i0    , cl_grid  ) 
     163 
     164            ! CAUTION: ocean shortwave radiation sets to zero if more than 50% of sea-ice !!gm to be removed 
     165            DO jj = 1, jpj 
     166               DO ji = 1, jpi 
     167                  zinda    = MAX(  0.e0, SIGN(  1.e0, -( -1.5 - freeze(ji,jj) )  )  ) 
     168                  qsr(ji,jj) = zinda * qsr(ji,jj) 
     169               END DO 
     170            END DO 
     171 
    161172         CASE( 4 )           ! CORE bulk formulation 
    162173            CALL blk_ice_core( t_su , u_ice , v_ice   , alb_ice_cs,                      & 
Note: See TracChangeset for help on using the changeset viewer.