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 3490 for branches/2012/dev_r3327_MERCATOR1_BDY/NEMOGCM/NEMO/OPA_SRC/SBC/tideini.F90 – NEMO

Ignore:
Timestamp:
2012-10-08T16:27:20+02:00 (12 years ago)
Author:
cbricaud
Message:

add Jerome Chanut 's modications for BDY, Mercator_1 2012 task

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_r3327_MERCATOR1_BDY/NEMOGCM/NEMO/OPA_SRC/SBC/tideini.F90

    r3367 r3490  
    2626       ftide 
    2727 
    28   LOGICAL, PUBLIC :: ln_tide_pot = .false. 
     28  LOGICAL, PUBLIC :: ln_tide_pot = .false., ln_tide_ramp = .false. 
     29  REAL(wp), PUBLIC :: rdttideramp  
    2930  INTEGER, PUBLIC :: nb_harmo 
    3031  INTEGER, PUBLIC, ALLOCATABLE, DIMENSION(:) :: ntide 
     
    4647    CHARACTER(LEN=4), DIMENSION(jpmax_harmo) :: clname 
    4748    ! 
    48     NAMELIST/nam_tide/ln_tide_pot,clname 
     49    NAMELIST/nam_tide/ln_tide_pot, ln_tide_ramp, rdttideramp, clname 
    4950    !!---------------------------------------------------------------------- 
    5051 
     
    5455          WRITE(numout,*) 
    5556          WRITE(numout,*) 'tide_init : Initialization of the tidal components' 
    56           WRITE(numout,*) '~~~~~~~ ' 
     57          WRITE(numout,*) '~~~~~~~~~ ' 
    5758       ENDIF 
    5859       ! 
     
    7778          WRITE(numout,*) '        Namelist nam_tide' 
    7879          WRITE(numout,*) '        nb_harmo    = ', nb_harmo 
     80          WRITE(numout,*) '        ln_tide_ramp = ', ln_tide_ramp  
     81          WRITE(numout,*) '        rdttideramp = ', rdttideramp 
     82          IF (ln_tide_ramp.AND.((nitend-nit000+1)*rdt/rday < rdttideramp)) & 
     83          & CALL ctl_stop('rdttideramp must be lower than run duration') 
     84          IF (ln_tide_ramp.AND.(rdttideramp<0.)) & 
     85          & CALL ctl_stop('rdttideramp must be positive') 
    7986          CALL flush(numout) 
    8087       ENDIF 
Note: See TracChangeset for help on using the changeset viewer.