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 10685 for branches/UKMO/r8395_India_uncoupled/NEMOGCM/NEMO/OPA_SRC/SBC/sbctide.F90 – NEMO

Ignore:
Timestamp:
2019-02-14T16:55:25+01:00 (5 years ago)
Author:
jcastill
Message:

Changes as Ash's files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/r8395_India_uncoupled/NEMOGCM/NEMO/OPA_SRC/SBC/sbctide.F90

    r10684 r10685  
    1616   USE ioipsl         ! NetCDF IPSL library 
    1717   USE lbclnk         ! ocean lateral boundary conditions (or mpp link) 
     18   USE bdytides 
    1819 
    1920   IMPLICIT NONE 
     
    9899 
    99100      DO jk = 1, nb_harmo 
    100          zcons = 0.7_wp * Wave(ntide(jk))%equitide * ftide(jk) 
     101         ! love number now provides in tide namelist 
     102         zcons = dn_love_number * Wave(ntide(jk))%equitide * ftide(jk) 
    101103         DO ji = 1, jpi 
    102104            DO jj = 1, jpj 
     
    109111               IF    ( Wave(ntide(jk))%nutide == 1 )  THEN  ;  zcs = zcons * SIN( 2._wp*zlat ) 
    110112               ELSEIF( Wave(ntide(jk))%nutide == 2 )  THEN  ;  zcs = zcons * COS( zlat )**2 
     113               ! Add tide potential for long period tides 
     114               ELSEIF( Wave(ntide(jk))%nutide == 0 )  THEN  ;  zcs = zcons * (0.5_wp-1.5_wp*SIN(zlat)**2._wp) 
    111115               ELSE                                         ;  zcs = 0._wp 
    112116               ENDIF 
Note: See TracChangeset for help on using the changeset viewer.