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 7431 for branches/2016/dev_merge_2016/NEMOGCM/NEMO/OPA_SRC/SBC/sbcblk.F90 – NEMO

Ignore:
Timestamp:
2016-12-02T11:01:53+01:00 (7 years ago)
Author:
timgraham
Message:

#1811 Fix for tests involving waves in SBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_merge_2016/NEMOGCM/NEMO/OPA_SRC/SBC/sbcblk.F90

    r7421 r7431  
    222222      !                                      !- fill the bulk structure with namelist informations 
    223223      CALL fld_fill( sf, slf_i, cn_dir, 'sbc_blk_init', 'surface boundary condition -- bulk formulae', 'namsbc_blk' ) 
     224      ! 
     225      IF ( ln_wave ) THEN 
     226      !Activated wave module but neither drag nor stokes drift activated 
     227         IF ( .NOT.(ln_cdgw .OR. ln_sdw .OR. ln_tauoc .OR. ln_stcor ) )   THEN 
     228            CALL ctl_warn( 'Ask for wave coupling but ln_cdgw=F, ln_sdw=F, ln_tauoc=F, ln_stcor=F') 
     229      !drag coefficient read from wave model definable only with mfs bulk formulae and core  
     230         ELSEIF (ln_cdgw .AND. .NOT. ln_NCAR )       THEN        
     231             CALL ctl_stop( 'drag coefficient read from wave model definable only with mfs bulk formulae and core') 
     232         ELSEIF (ln_stcor .AND. .NOT. ln_sdw)                             THEN 
     233             CALL ctl_stop( 'Stokes-Coriolis term calculated only if activated Stokes Drift ln_sdw=T') 
     234         ENDIF 
     235      ELSE 
     236      IF ( ln_cdgw .OR. ln_sdw .OR. ln_tauoc .OR. ln_stcor )                &  
     237         &   CALL ctl_stop( 'Not Activated Wave Module (ln_wave=F) but asked coupling ',    & 
     238         &                  'with drag coefficient (ln_cdgw =T) '  ,                        & 
     239         &                  'or Stokes Drift (ln_sdw=T) ' ,                                 & 
     240         &                  'or ocean stress modification due to waves (ln_tauoc=T) ',      &   
     241         &                  'or Stokes-Coriolis term (ln_stcori=T)'  ) 
     242      ENDIF  
    224243      ! 
    225244      !            
Note: See TracChangeset for help on using the changeset viewer.