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 5457 for branches/2014/dev_r4822_INGV_WAVE/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90 – NEMO

Ignore:
Timestamp:
2015-06-22T12:36:03+02:00 (9 years ago)
Author:
emanuelaclementi
Message:

#1544: Wave-current developments: Tracer advection & surface stress

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4822_INGV_WAVE/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90

    r4822 r5457  
    8484      NAMELIST/namsbc/ nn_fsbc   , ln_ana    , ln_flx,  ln_blk_clio, ln_blk_core, ln_cpl,   & 
    8585         &             ln_blk_mfs, ln_apr_dyn, nn_ice,  nn_ice_embd, ln_dm2dc   , ln_rnf,   & 
    86          &             ln_ssr    , nn_fwb    , ln_cdgw , ln_wave , ln_sdw, nn_lsm, cn_iceflx 
     86         &             ln_ssr    , nn_fwb    , ln_cdgw , ln_wave , ln_sdw, ln_tauoc,        & 
     87         &             nn_lsm, cn_iceflx 
    8788      INTEGER  ::   ios 
    8889      !!---------------------------------------------------------------------- 
     
    337338                       CALL sbc_cpl_rcv ( kt, nn_fsbc, nn_ice )   ! 
    338339      END SELECT 
    339  
     340      IF (ln_wave .AND. ln_tauoc) THEN 
     341            utau(:,:) = utau(:,:)*tauoc_wave(:,:) 
     342            vtau(:,:) = vtau(:,:)*tauoc_wave(:,:) 
     343            taum(:,:) = taum(:,:)*tauoc_wave(:,:) 
     344      ! 
     345            SELECT CASE( nsbc ) 
     346            CASE(  0,1,2,3,5,-1 )  ; 
     347                IF(lwp) WRITE(numout,*) 'WARNING: You are subtracting the wave stress to the ocean. & 
     348                        & If not requested select ln_tauoc=.false' 
     349            END SELECT 
     350      ! 
     351      END IF 
    340352      !                                            !==  Misc. Options  ==! 
    341353       
Note: See TracChangeset for help on using the changeset viewer.