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 11748 for NEMO/branches – NEMO

Changeset 11748 for NEMO/branches


Ignore:
Timestamp:
2019-10-21T15:27:28+02:00 (4 years ago)
Author:
davestorkey
Message:

UKMO/NEMO_4.0.1_GO6_mixing : science change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.1_GO6_mixing/src/OCE/ZDF/zdftke.F90

    r11715 r11748  
    716716      IF( nn_mxl  < 0   .OR.  nn_mxl  > 3 )   CALL ctl_stop( 'bad flag: nn_mxl is  0, 1 or 2 ' ) 
    717717      IF( nn_pdl  < 0   .OR.  nn_pdl  > 1 )   CALL ctl_stop( 'bad flag: nn_pdl is  0 or 1    ' ) 
    718       IF( nn_htau < 0   .OR.  nn_htau > 1 )   CALL ctl_stop( 'bad flag: nn_htau is 0, 1 or 2 ' ) 
     718      IF( ( nn_htau < 0   .OR.  nn_htau > 1 ) .AND. nn_htau .NE. 4 )   CALL ctl_stop( 'bad flag: nn_htau is 0, 1 or 4 ' ) 
    719719      IF( nn_etau == 3 .AND. .NOT. ln_cpl )   CALL ctl_stop( 'nn_etau == 3 : HF taum only known in coupled mode' ) 
    720720      ! 
     
    734734         CASE( 1 )                                 ! F(latitude) : 0.5m to 30m poleward of 40 degrees 
    735735            htau(:,:) = MAX(  0.5_wp, MIN( 30._wp, 45._wp* ABS( SIN( rpi/180._wp * gphit(:,:) ) ) )   )             
     736         CASE( 4 )                                 ! F(latitude) : 0.5m to 10m/30m poleward of 13/40 degrees north/south 
     737            DO jj = 2, jpjm1 
     738               DO ji = fs_2, fs_jpim1   ! vector opt. 
     739                  IF( gphit(ji,jj) <= 0._wp ) THEN 
     740                     htau(ji,jj) = MAX(  0.5_wp, MIN( 30._wp, 45._wp* ABS( SIN( rpi/180._wp * gphit(ji,jj) ) ) )   ) 
     741                  ELSE 
     742                     htau(ji,jj) = MAX(  0.5_wp, MIN( 10._wp, 45._wp* ABS( SIN( rpi/180._wp * gphit(ji,jj) ) ) )   ) 
     743                  ENDIF 
     744               END DO 
     745            END DO 
    736746         END SELECT 
    737747      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.