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 6012 for branches/2015/dev_MetOffice_merge_2015/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90 – NEMO

Ignore:
Timestamp:
2015-12-07T16:11:45+01:00 (8 years ago)
Author:
mathiot
Message:

merge MetO branch with dev_r5151_UKMO_ISF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_MetOffice_merge_2015/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90

    r6005 r6012  
    9090      NAMELIST/namsbc/ nn_fsbc   , ln_ana    , ln_flx, ln_blk_clio, ln_blk_core, ln_mixcpl,   & 
    9191         &             ln_blk_mfs, ln_apr_dyn, nn_ice, nn_ice_embd, ln_dm2dc   , ln_rnf   ,   & 
    92          &             ln_ssr    , nn_isf    , nn_fwb, ln_cdgw    , ln_wave    , ln_sdw   ,   & 
     92         &             ln_ssr    , ln_isf    , nn_fwb, ln_cdgw    , ln_wave    , ln_sdw   ,   & 
    9393         &             nn_lsm    , nn_limflx , nn_components, ln_cpl 
    9494      INTEGER  ::   ios 
     
    143143         WRITE(numout,*) '              daily mean to diurnal cycle qsr            ln_dm2dc    = ', ln_dm2dc  
    144144         WRITE(numout,*) '              runoff / runoff mouths                     ln_rnf      = ', ln_rnf 
    145          WRITE(numout,*) '              iceshelf formulation                       nn_isf      = ', nn_isf 
     145         WRITE(numout,*) '              iceshelf melting                           ln_isf      = ', ln_isf 
    146146         WRITE(numout,*) '              Sea Surface Restoring on SST and/or SSS    ln_ssr      = ', ln_ssr 
    147147         WRITE(numout,*) '              FreshWater Budget control  (=0/1/2)        nn_fwb      = ', nn_fwb 
     
    181181 
    182182      !                          ! Checks: 
    183       IF( nn_isf .EQ. 0 ) THEN                      ! variable initialisation if no ice shelf  
    184          IF( sbc_isf_alloc() /= 0 )   CALL ctl_stop( 'sbc_init : unable to allocate sbc_isf arrays' ) 
     183      IF( .NOT. ln_isf ) THEN                      ! variable initialisation if no ice shelf  
     184         IF( sbc_isf_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'sbc_init : unable to allocate sbc_isf arrays' ) 
    185185         fwfisf  (:,:)   = 0.0_wp ; fwfisf_b  (:,:)   = 0.0_wp 
    186186         risf_tsc(:,:,:) = 0.0_wp ; risf_tsc_b(:,:,:) = 0.0_wp 
    187          rdivisf       = 0.0_wp 
    188187      END IF 
     188 
    189189      IF( nn_ice == 0 .AND. nn_components /= jp_iam_opa )   fr_i(:,:) = 0.e0 ! no ice in the domain, ice fraction is always zero 
    190190 
     
    378378      IF( ln_icebergs    )   CALL icb_stp( kt )                   ! compute icebergs 
    379379 
    380       IF( nn_isf   /= 0  )   CALL sbc_isf( kt )                    ! compute iceshelves 
     380      IF( ln_isf         )   CALL sbc_isf( kt )                   ! compute iceshelves 
    381381 
    382382      IF( ln_rnf         )   CALL sbc_rnf( kt )                   ! add runoffs to fresh water fluxes 
Note: See TracChangeset for help on using the changeset viewer.