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 2210 for branches/dev_r2174_DCY/NEMO/OPA_SRC/SBC/sbcblk_core.F90 – NEMO

Ignore:
Timestamp:
2010-10-12T11:54:28+02:00 (14 years ago)
Author:
smasson
Message:

bugfix on diurnal cycle in dev_r2174_DCY, see ticket:730

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_r2174_DCY/NEMO/OPA_SRC/SBC/sbcblk_core.F90

    r2188 r2210  
    177177      ENDIF 
    178178 
    179                        CALL fld_read( kt, nn_fsbc, sf )        ! input fields provided at the current time-step 
    180  
    181       IF( ln_dm2dc )   CALL sbc_dcy ( kt , sf(jp_qsr)%fnow )   ! modify now Qsr to include the diurnal cycle 
     179      CALL fld_read( kt, nn_fsbc, sf )        ! input fields provided at the current time-step 
    182180 
    183181#if defined key_lim3 
     
    185183#endif 
    186184      !                                                        ! surface ocean fluxes computed with CLIO bulk formulea 
    187       IF( MOD( kt - 1, nn_fsbc ) == 0 )   CALL blk_oce_core( sf, sst_m, ssu_m, ssv_m ) 
     185      IF( MOD( kt - 1, nn_fsbc ) == 0 )   CALL blk_oce_core( kt, sf, sst_m, ssu_m, ssv_m ) 
    188186      ! 
    189187   END SUBROUTINE sbc_blk_core 
    190188    
    191189    
    192    SUBROUTINE blk_oce_core( sf, pst, pu, pv ) 
     190   SUBROUTINE blk_oce_core( kt, sf, pst, pu, pv ) 
    193191      !!--------------------------------------------------------------------- 
    194192      !!                     ***  ROUTINE blk_core  *** 
     
    211209      !!  ** Nota  :   sf has to be a dummy argument for AGRIF on NEC 
    212210      !!--------------------------------------------------------------------- 
     211      INTEGER ,  INTENT(in)                     ::   kt   ! ocean time step 
    213212      TYPE(fld), INTENT(in), DIMENSION(:)       ::   sf    ! input data 
    214213      REAL(wp),  INTENT(in), DIMENSION(jpi,jpj) ::   pst   ! surface temperature                      [Celcius] 
     
    264263      ! ----------------------------------------------------------------------------- ! 
    265264     
     265      IF( ln_dm2dc ) THEN   ;   qsr(:,:) = sbc_dcy( kt, sf(jp_qsr)%fnow )   ! modify now Qsr to include the diurnal cycle 
     266      ELSE                  ;   qsr(:,:) = sf(jp_qsr)%fnow(:,:) 
     267      ENDIF 
    266268      ! ocean albedo assumed to be 0.066 
    267 !CDIR COLLAPSE 
    268       qsr (:,:) = ( 1. - 0.066 ) * sf(jp_qsr)%fnow(:,:) * tmask(:,:,1)                                 ! Short Wave 
     269      qsr (:,:) = ( 1. - 0.066 ) * qsr(:,:) * tmask(:,:,1)                                                 ! Short Wave 
    269270!CDIR COLLAPSE 
    270271      zqlw(:,:) = (  sf(jp_qlw)%fnow(:,:) - Stef * zst(:,:)*zst(:,:)*zst(:,:)*zst(:,:)  ) * tmask(:,:,1)   ! Long  Wave 
Note: See TracChangeset for help on using the changeset viewer.