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 12287 for branches/UKMO/r8395_cpl_tauwav/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90 – NEMO

Ignore:
Timestamp:
2019-12-23T13:01:19+01:00 (4 years ago)
Author:
jcastill
Message:

Fist attempt at adding wave momentum coupling (not tested)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/r8395_cpl_tauwav/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90

    r12286 r12287  
    407407         IF( ll_opa    )       CALL sbc_cpl_rcv   ( kt, nn_fsbc, nn_ice )   ! OPA-SAS coupling: OPA receiving fields from SAS 
    408408      END SELECT 
    409       IF ( ln_wave .AND. ln_tauoc) THEN                                 ! Wave stress subctracted 
    410             utau(:,:) = utau(:,:)*tauoc_wave(:,:) 
    411             vtau(:,:) = vtau(:,:)*tauoc_wave(:,:) 
    412             taum(:,:) = taum(:,:)*tauoc_wave(:,:) 
    413       ! 
    414             SELECT CASE( nsbc ) 
    415             CASE(  0,1,2,3,5,-1 )  ; 
    416                 IF(lwp .AND. kt == nit000 ) WRITE(numout,*) 'WARNING: You are subtracting the wave stress to the ocean. & 
    417                         & If not requested select ln_tauoc=.false' 
    418             END SELECT 
    419       ! 
    420       END IF 
    421409      IF( ln_mixcpl )          CALL sbc_cpl_rcv   ( kt, nn_fsbc, nn_ice )   ! forced-coupled mixed formulation after forcing 
     410 
     411      IF ( ln_wave .AND. (ln_tauoc .OR. ln_tauw) ) CALL sbc_stress( )       ! Wave stress update 
    422412 
    423413      ! 
Note: See TracChangeset for help on using the changeset viewer.