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 12154 for NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019/src/ABL/sbcabl.F90 – NEMO

Ignore:
Timestamp:
2019-12-10T15:44:23+01:00 (4 years ago)
Author:
cetlod
Message:

commit

Location:
NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019/src/ABL
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019/src/ABL/sbcabl.F90

    r11858 r12154  
    2222   USE sbc_oce        ! Surface boundary condition: ocean fields 
    2323   USE sbcblk         ! Surface boundary condition: bulk formulae 
     24   USE sbcblk_phy     ! Surface boundary condition: bulk formulae 
    2425   USE dom_oce, ONLY  : tmask 
    2526   ! 
     
    9394      IF( nn_dyn_restore  < 0   .OR.  nn_dyn_restore  > 2 )   & 
    9495         &                 CALL ctl_stop( 'abl_init : bad flag, nn_dyn_restore must be  0, 1 or 2 ' )             
    95       ! 
     96 
    9697      !!--------------------------------------------------------------------- 
    9798      !! Control prints 
     
    215216            WRITE(numout,*) ' ABL Maximum value for dynamics restoring = ',zcff1 
    216217            ! Check that restoring coefficients are between 0 and 1 
    217             !IF( zcff1 > 1._wp .OR. zcff1 < 0._wp )   & 
    218             !IF( zcff1 > nn_fsbc .OR. zcff1 < 0._wp )   & 
    219218            IF( zcff1 - nn_fsbc > 0.001_wp .OR. zcff1 < 0._wp )   & 
    220219               &                   CALL ctl_stop( 'abl_init : wrong value for rn_ldyn_max' ) 
    221             !IF( zcff  > 1._wp .OR. zcff  < 0._wp )   & 
    222220            IF( zcff  - nn_fsbc > 0.001_wp .OR. zcff  < 0._wp )   & 
    223221               &                   CALL ctl_stop( 'abl_init : wrong value for rn_ldyn_min' ) 
     
    236234         WRITE(numout,*) ' ABL Maximum value for tracers restoring = ',zcff1 
    237235         ! Check that restoring coefficients are between 0 and 1 
    238          !IF( zcff1 > 1._wp .OR. zcff1 < 0._wp )   & 
    239236         IF( zcff1 - nn_fsbc > 0.001_wp .OR. zcff1 < 0._wp )   & 
    240237            &                   CALL ctl_stop( 'abl_init : wrong value for rn_ltra_max' ) 
    241          !IF( zcff  > 1._wp .OR. zcff  < 0._wp )   & 
    242238         IF( zcff  - nn_fsbc > 0.001_wp .OR. zcff  < 0._wp )   & 
    243239            &                   CALL ctl_stop( 'abl_init : wrong value for rn_ltra_min' ) 
     
    294290         tke_abl(:,:,:,nt_a     ) = 0._wp 
    295291      ENDIF 
     292 
     293      rhoa(:,:) = rho_air( tq_abl(:,:,2,nt_n,jp_ta), tq_abl(:,:,2,nt_n,jp_qa), sf(jp_slp)%fnow(:,:,1) ) !!GS: rhoa must be (re)computed here here to avoid division by zero in blk_ice_1 (TBI) 
    296294      
    297295   END SUBROUTINE sbc_abl_init 
     
    341339         &                tq_abl(:,:,2,nt_n,jp_ta), tq_abl(:,:,2,nt_n,jp_qa),   &   !   <<= in 
    342340         &                sf(jp_slp )%fnow(:,:,1) , sst_m, ssu_m, ssv_m     ,   &   !   <<= in 
     341         &                sf(jp_qsr )%fnow(:,:,1) , sf(jp_qlw )%fnow(:,:,1) ,   &   !   <<= in 
    343342         &                zssq, zcd_du, zsen, zevp                          )       !   =>> out 
    344343   
Note: See TracChangeset for help on using the changeset viewer.