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/sbcmod.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/sbcmod.F90

    r1792 r2187  
    137137      IF( nn_ice == 2 .AND. .NOT.( ln_blk_clio .OR. ln_blk_core .OR. lk_cpl ) )   & 
    138138         &   CALL ctl_stop( 'sea-ice model requires a bulk formulation or coupled configuration' ) 
     139       
     140      IF( ln_dm2dc .AND. .NOT.( ln_flx .OR. ln_blk_core ) )   & 
     141         &   CALL ctl_stop( 'diurnal cycle into qsr field from daily values requires a flux or core-bulk formulation' ) 
     142       
     143      IF( ln_dm2dc .AND. ( ( NINT(rday) / ( nn_fsbc * NINT(rdt) ) )  < 8 ) )   & 
     144         &   CALL ctl_warn( 'diurnal cycle for qsr: the sampling of the diurnal cycle is too small...' ) 
    139145       
    140146      ! Choice of the Surface Boudary Condition (set nsbc) 
     
    216222      ! Misc. Options 
    217223      ! ------------- 
    218  
    219 !!gm  IF( ln_dm2dc       )   CALL sbc_dcy( kt )                 ! Daily mean qsr distributed over the Diurnal Cycle 
    220224       
    221225      SELECT CASE( nn_ice )                                     ! Update heat and freshwater fluxes over sea-ice areas 
     
    239243         CALL iom_put( "emp"    , emp       )                   ! upward water flux 
    240244         CALL iom_put( "emps"   , emps      )                   ! c/d water flux 
    241          CALL iom_put( "qns+qsr", qns + qsr )                   ! total heat flux   (caution if ln_dm2dc=true, to be  
    242          CALL iom_put( "qns"    , qns       )                   ! solar heat flux    moved after the call to iom_setkt) 
    243          CALL iom_put( "qsr"    ,       qsr )                   ! solar heat flux    moved after the call to iom_setkt) 
     245         CALL iom_put( "qns+qsr", qns + qsr )                   ! total heat flux 
     246         CALL iom_put( "qns"    , qns       )                   ! solar heat flux 
     247         CALL iom_put( "qsr"    ,       qsr )                   ! solar heat flux 
    244248         IF(  nn_ice > 0 )   CALL iom_put( "ice_cover", fr_i )  ! ice fraction  
    245249      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.