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 2292 for branches/DEV_r1879_FCM/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90 – NEMO

Ignore:
Timestamp:
2010-10-19T12:15:40+02:00 (14 years ago)
Author:
smasson
Message:

update DEV_r1879_FCM for additional tests...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r1879_FCM/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90

    r2160 r2292  
    2323   USE sbc_oce         ! Surface boundary condition: ocean fields 
    2424   USE sbc_ice         ! Surface boundary condition: ice fields 
     25   USE sbcdcy          ! surface boundary condition: diurnal cycle 
    2526   USE phycst          ! physical constants 
    2627#if defined key_lim3 
     
    527528      CALL cpl_prism_define(jprcv, jpsnd)             
    528529      ! 
     530      IF( ln_dm2dc .AND. ( cpl_prism_freq( jpr_qsroce ) + cpl_prism_freq( jpr_qsrmix ) /= 86400 ) )   & 
     531         &   CALL ctl_stop( 'sbc_cpl_init: diurnal cycle reconstruction (ln_dm2dc) needs daily couping for solar radiation' ) 
     532 
    529533   END SUBROUTINE sbc_cpl_init 
    530534 
     
    728732         IF( srcv(jpr_qsroce)%laction )   qsr(:,:) = frcv(:,:,jpr_qsroce)  
    729733         IF( srcv(jpr_qsrmix)%laction )   qsr(:,:) = frcv(:,:,jpr_qsrmix) 
     734         IF( ln_dm2dc )   qsr(:,:) = sbc_dcy( qsr )                           ! modify qsr to include the diurnal cycle 
    730735         ! 
    731736         !                                                       ! total freshwater fluxes over the ocean (emp, emps) 
     
    11591164            &                     + palbi         (:,:,1) * zicefr(:,:,1) ) ) 
    11601165      END SELECT 
     1166      IF( ln_dm2dc ) THEN   ! modify qsr to include the diurnal cycle 
     1167         pqsr_tot(:,:  ) = sbc_dcy( pqsr_tot(:,:  ) ) 
     1168         pqsr_ice(:,:,1) = sbc_dcy( pqsr_ice(:,:,1) ) 
     1169      ENDIF 
    11611170 
    11621171      SELECT CASE( TRIM( cn_rcv_dqnsdt ) ) 
Note: See TracChangeset for help on using the changeset viewer.