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 5190 – NEMO

Changeset 5190


Ignore:
Timestamp:
2015-04-01T15:01:40+02:00 (9 years ago)
Author:
timgraham
Message:

Fix for ticket #1393:
Removed tidal components from namelist_ref (and added a dummy value)
Added a check in tide_ini to ensure that at least one valid component is set

Location:
trunk/NEMOGCM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/CONFIG/SHARED/namelist_ref

    r5147 r5190  
    582582   ln_tide_ramp  = .false.  ! 
    583583   rdttideramp   =    0.    ! 
    584    clname(1)     =   'M2'   !  name of constituent 
    585    clname(2)     =   'S2' 
    586    clname(3)     =   'N2' 
    587    clname(4)     =   'K1' 
    588    clname(5)     =   'O1' 
    589    clname(6)     =   'Q1' 
    590    clname(7)     =   'M4' 
    591    clname(8)     =   'K2' 
    592    clname(9)     =   'P1' 
    593    clname(10)    =   'Mf' 
    594    clname(11)    =   'Mm' 
     584   clname(1)     = 'DUMMY'  !  name of constituent - all tidal components must be set in namelist_cfg 
    595585/ 
    596586!----------------------------------------------------------------------- 
  • trunk/NEMOGCM/NEMO/OPA_SRC/SBC/tideini.F90

    r4624 r5190  
    8080          END DO 
    8181       END DO 
     82       !        
     83       ! Ensure that tidal components have been set in namelist_cfg 
     84       IF( nb_harmo .EQ. 0 ) CALL ctl_stop( 'tide_init : No tidal components set in nam_tide' ) 
    8285       ! 
    8386       IF(lwp) THEN 
Note: See TracChangeset for help on using the changeset viewer.