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 10288 for NEMO/branches/2018/dev_r9866_HPC_03_globcom/src/OCE/SBC/sbcmod.F90 – NEMO

Ignore:
Timestamp:
2018-11-07T18:25:49+01:00 (5 years ago)
Author:
francesca
Message:

reduce global communications, see #2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2018/dev_r9866_HPC_03_globcom/src/OCE/SBC/sbcmod.F90

    r9656 r10288  
    4646   USE sbcfwb         ! surface boundary condition: freshwater budget 
    4747   USE icbstp         ! Icebergs 
     48   USE icb_oce  , ONLY : ln_passive_mode      ! iceberg interaction mode 
    4849   USE traqsr         ! active tracers: light penetration 
    4950   USE sbcwave        ! Wave module 
     
    6869 
    6970   !!---------------------------------------------------------------------- 
    70    !! NEMO/OCE 4.0 , NEMO Consortium (2018)  
     71   !! NEMO/OCE 4.0 , NEMO Consortium (2018) 
    7172   !! $Id$ 
    72    !! Software governed by the CeCILL licence     (./LICENSE) 
     73   !! Software governed by the CeCILL license (see ./LICENSE) 
    7374   !!---------------------------------------------------------------------- 
    7475CONTAINS 
     
    156157         WRITE(numout,*) '               wave modified ocean stress component ln_tauw       = ', ln_tauw 
    157158         WRITE(numout,*) '               Stokes coriolis term                 ln_stcor      = ', ln_stcor 
    158          WRITE(numout,*) '               neutral drag coefficient (CORE, MFS) ln_cdgw       = ', ln_cdgw 
    159       ENDIF 
    160       ! 
     159         WRITE(numout,*) '               neutral drag coefficient (CORE,NCAR) ln_cdgw       = ', ln_cdgw 
     160      ENDIF 
     161      ! 
     162      IF( .NOT.ln_wave ) THEN 
     163         ln_sdw = .false. ; ln_cdgw = .false. ; ln_tauwoc = .false. ; ln_tauw = .false. ; ln_stcor = .false. 
     164      ENDIF  
    161165      IF( ln_sdw ) THEN 
    162166         IF( .NOT.(nn_sdrift==jp_breivik_2014 .OR. nn_sdrift==jp_li_2017 .OR. nn_sdrift==jp_peakfr) ) & 
     
    432436      END SELECT 
    433437 
    434       IF( ln_icebergs    )   CALL icb_stp( kt )                   ! compute icebergs 
     438      IF( ln_icebergs    )   THEN 
     439                                     CALL icb_stp( kt )           ! compute icebergs 
     440         ! icebergs may advect into haloes during the icb step and alter emp. 
     441         ! A lbc_lnk is necessary here to ensure restartability (#2113) 
     442         IF( .NOT. ln_passive_mode ) CALL lbc_lnk( emp, 'T', 1. ) ! ensure restartability with icebergs 
     443      ENDIF 
    435444 
    436445      IF( ln_isf         )   CALL sbc_isf( kt )                   ! compute iceshelves 
Note: See TracChangeset for help on using the changeset viewer.