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 3574 for branches/2012/dev_INGV/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90 – NEMO

Ignore:
Timestamp:
2012-11-16T12:13:00+01:00 (11 years ago)
Author:
adani
Message:

ticket #998. Step 2: Add in changes from the 2012/dev_r3389_INGV4_stokes branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_INGV/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90

    r3294 r3574  
    8383      !! 
    8484      NAMELIST/namsbc/ nn_fsbc   , ln_ana , ln_flx  , ln_blk_clio, ln_blk_core, ln_cpl,   & 
    85          &             ln_blk_mfs, ln_apr_dyn, nn_ice , ln_dm2dc, ln_rnf, ln_ssr     , nn_fwb, ln_cdgw 
     85         &             ln_blk_mfs, ln_apr_dyn, nn_ice , ln_dm2dc, ln_rnf, ln_ssr, nn_fwb, & 
     86         &             ln_wave, ln_cdgw, ln_sdw 
    8687      !!---------------------------------------------------------------------- 
    8788 
     
    9293      ENDIF 
    9394 
     95      call flush(numout) 
    9496      REWIND( numnam )           ! Read Namelist namsbc 
    9597      READ  ( numnam, namsbc ) 
     98      call flush(numout) 
    9699 
    97100      !                          ! overwrite namelist parameter using CPP key information 
     
    166169         &   CALL ctl_warn( 'diurnal cycle for qsr: the sampling of the diurnal cycle is too small...' ) 
    167170 
    168        !drag coefficient read from wave model definable only with mfs bulk formulae and core  
    169        IF(ln_cdgw .AND. .NOT.(ln_blk_mfs .OR. ln_blk_core) )              & 
    170           &   CALL ctl_stop( 'drag coefficient read from wave model definable only with mfs bulk formulae and core') 
     171      IF ( ln_wave ) THEN 
     172      !Activated wave module but neither drag nor stokes drift activated 
     173         IF ( .NOT.(ln_cdgw .OR. ln_sdw) )   THEN 
     174            CALL ctl_warn( 'Ask for wave coupling but nor drag coefficient (ln_cdgw=F) neither stokes drift activated (ln_sdw=F)' ) 
     175      !drag coefficient read from wave model definable only with mfs bulk formulae and core  
     176         ELSEIF (ln_cdgw .AND. .NOT.(ln_blk_mfs .OR. ln_blk_core) )       THEN        
     177             CALL ctl_stop( 'drag coefficient read from wave model definable only with mfs bulk formulae and core') 
     178         ENDIF 
     179      ELSE 
     180      IF ( ln_cdgw .OR. ln_sdw  )                                         &  
     181         &   CALL ctl_stop( 'Not Activated Wave Module (ln_wave=F) but asked coupling with drag coefficient (ln_cdgw =T) or Stokes drift (ln_sdw=T) ') 
     182      ENDIF  
    171183       
    172184      !                          ! Choice of the Surface Boudary Condition (set nsbc) 
     
    249261      !                                                  ! averaged over nf_sbc time-step 
    250262 
    251       IF (ln_cdgw) CALL sbc_wave( kt ) 
     263      IF (ln_wave) CALL sbc_wave( kt ) 
    252264                                                   !==  sbc formulation  ==! 
    253265                                                             
Note: See TracChangeset for help on using the changeset viewer.