Changeset 11472
- Timestamp:
- 2019-08-27T16:42:21+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/UKMO/NEMO_4.0_mirror_SI3_decoupled/src/OCE/ZDF/zdftke.F90
r10888 r11472 716 716 IF( nn_mxl < 0 .OR. nn_mxl > 3 ) CALL ctl_stop( 'bad flag: nn_mxl is 0, 1 or 2 ' ) 717 717 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 ' ) 719 719 IF( nn_etau == 3 .AND. .NOT. ln_cpl ) CALL ctl_stop( 'nn_etau == 3 : HF taum only known in coupled mode' ) 720 720 ! … … 734 734 CASE( 1 ) ! F(latitude) : 0.5m to 30m poleward of 40 degrees 735 735 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 736 746 END SELECT 737 747 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.