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 15081 – NEMO

Changeset 15081


Ignore:
Timestamp:
2021-07-05T16:26:10+02:00 (3 years ago)
Author:
clem
Message:

debug algo andreas2005 in the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/SBC/sbcblk_algo_ice_an05.F90

    r14072 r15081  
    267267 
    268268            !! *** TABLE 1 of Andreas et al. 2005 *** 
    269             !! Smooth flow condition (R* <= 0.135): 
    270             zsmoot = 0.5_wp + SIGN( 0.5_wp, (0.135_wp   - zre) ) ! zre <= 0.135: zsmoot==1 ; otherwize: zsmoot==0 
    271             !! Transition (0.135 < R* < 2.5): 
    272             ztrans = 0.5_wp + SIGN( 0.5_wp, (2.49999_wp - zre) ) - zsmoot 
    273             !! Rough ( R* > 2.5): 
    274             zrough = 0.5_wp + SIGN( 0.5_wp, (zre - 2.5_wp) ) 
    275  
    276             IF( (zsmoot+ztrans+zrough > 1.001_wp).OR.(zsmoot+ztrans+zrough < 0.999_wp) ) & 
    277                CALL ctl_stop( ' rough_leng_tq@mod_blk_ice_an05.f90 => something wrong with zsmoot, ztrans, zrough!' ) 
    278  
     269            zsmoot = 0._wp ; ztrans = 0._wp ; zrough = 0._wp 
     270            IF    ( zre <= 0.135_wp ) THEN   ! Smooth flow condition (R* <= 0.135): 
     271               zsmoot = 1._wp 
     272            ELSEIF( zre < 2.5_wp )    THEN   ! Transition (0.135 < R* < 2.5) 
     273               ztrans = 1._wp 
     274            ELSE                             ! Rough ( R* > 2.5) 
     275               zrough = 1._wp 
     276            ENDIF 
     277                
    279278            zlog  = LOG(zre) 
    280279            zlog2 = zlog*zlog 
Note: See TracChangeset for help on using the changeset viewer.