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 4220 for branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90 – NEMO

Ignore:
Timestamp:
2013-11-15T16:36:52+01:00 (10 years ago)
Author:
clem
Message:

corrections for restartability

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90

    r4155 r4220  
    106106          nn_ice      =   0 
    107107      ENDIF 
    108        
     108      
    109109      IF(lwp) THEN               ! Control print 
    110110         WRITE(numout,*) '        Namelist namsbc (partly overwritten with CPP key setting)' 
     
    129129      ENDIF 
    130130 
    131       !   Flux handling over ice categories  
     131      !   Flux handling over ice categories 
     132#if defined key_coupled  
    132133      SELECT CASE ( TRIM (cn_iceflx)) 
    133134      CASE ('ave') 
     
    143144      IF(lwp) WRITE(numout,*) '              Fluxes averaged over all ice categories         ln_iceflx_ave    = ', ln_iceflx_ave 
    144145      IF(lwp) WRITE(numout,*) '              Fluxes distributed linearly over ice categories ln_iceflx_linear = ', ln_iceflx_linear 
     146#endif 
    145147      ! 
    146148      !                              ! allocate sbc arrays 
     
    182184      IF( ( nn_ice == 3 .OR. nn_ice == 4 ) .AND. nn_ice_embd == 0 )   & 
    183185         &   CALL ctl_stop( 'LIM3 and CICE sea-ice models require nn_ice_embd = 1 or 2' ) 
    184  
     186#if defined key_coupled 
    185187      IF( ln_iceflx_ave .AND. ln_iceflx_linear ) & 
    186188         &   CALL ctl_stop( ' ln_iceflx_ave and ln_iceflx_linear options are not compatible' ) 
    187  
    188189      IF( ( nn_ice ==3 .AND. lk_cpl) .AND. .NOT. ( ln_iceflx_ave .OR. ln_iceflx_linear ) ) & 
    189190         &   CALL ctl_stop( ' With lim3 coupled, either ln_iceflx_ave or ln_iceflx_linear must be set to .TRUE.' ) 
    190        
     191#endif       
    191192      IF( ln_dm2dc )   nday_qsr = -1   ! initialisation flag 
    192193 
     
    320321      CASE(  3 )   ;         CALL sbc_ice_lim  ( kt, nsbc )          ! LIM-3 ice model 
    321322      !is it useful? 
    322       !CASE(  4 )   ;         CALL sbc_ice_cice ( kt, nsbc )          ! CICE ice model 
     323      CASE(  4 )   ;         CALL sbc_ice_cice ( kt, nsbc )          ! CICE ice model 
    323324      END SELECT                                               
    324325 
Note: See TracChangeset for help on using the changeset viewer.