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

Ignore:
Timestamp:
2010-10-07T17:44:48+02:00 (14 years ago)
Author:
smasson
Message:

add diurna 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

    r1730 r2187  
    2626   USE fldread         ! read input fields 
    2727   USE sbc_oce         ! Surface boundary condition: ocean fields 
     28   USE sbcdcy          ! surface forcing: diurnal cycle 
    2829   USE iom             ! I/O manager library 
    2930   USE in_out_manager  ! I/O manager 
     
    147148         READ  ( numnam, namsbc_core ) 
    148149         ! 
     150         ! do we plan to use ln_dm2dc with non-daily forcing? 
     151         IF( ln_dm2dc .AND. sn_qsr%nfreqh /= 24 )   & 
     152            &   CALL ctl_stop( 'sbc_blk_core: ln_dm2dc can be activated only with daily short-wave forcing' )  
     153         IF( ln_dm2dc .AND. sn_qsr%ln_tint ) THEN 
     154            CALL ctl_warn( 'sbc_blk_core: ln_dm2dc is taking care of the temporal interpolation of daily qsr',   & 
     155                 &         '              ==> We force time interpolation = .false. for qsr' ) 
     156            sn_qsr%ln_tint = .false. 
     157         ENDIF 
     158         ! 
    149159         ! store namelist information in an array 
    150160         slf_i(jp_wndi) = sn_wndi   ;   slf_i(jp_wndj) = sn_wndj 
     
    169179         ! 
    170180         ! fill sf with slf_i and control print 
    171          CALL fld_fill( sf, slf_i, cn_dir, 'sbc_blk_core', 'flux formulattion for ocean surface boundary condition', 'namsbc_core' ) 
     181         CALL fld_fill( sf, slf_i, cn_dir, 'sbc_blk_core', 'flux formulation for ocean surface boundary condition', 'namsbc_core' ) 
    172182         ! 
    173183      ENDIF 
    174184 
    175185      CALL fld_read( kt, nn_fsbc, sf )                   ! input fields provided at the current time-step 
     186 
     187      IF( ln_dm2dc )   CALL sbc_dcy( kt , sf(jp_qsr)%fnow )   ! modify sf(jp_qsr)%fnow for diurnal cycle 
    176188 
    177189#if defined key_lim3 
Note: See TracChangeset for help on using the changeset viewer.