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 12453 for NEMO/branches/UKMO/r12083_India_uncoupled/src/OCE/SBC – NEMO

Ignore:
Timestamp:
2020-02-25T16:29:34+01:00 (4 years ago)
Author:
jcastill
Message:

First implementation of the branch - compiling after merge

Location:
NEMO/branches/UKMO/r12083_India_uncoupled/src/OCE/SBC
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/r12083_India_uncoupled/src/OCE/SBC/sbctide.F90

    r11715 r12453  
    1616   USE ioipsl         ! NetCDF IPSL library 
    1717   USE lbclnk         ! ocean lateral boundary conditions (or mpp link) 
     18   USE bdytides 
    1819 
    1920   IMPLICIT NONE 
     
    108109 
    109110      DO jk = 1, nb_harmo 
    110          zcons = 0.7_wp * Wave(ntide(jk))%equitide * ftide(jk) 
     111         ! love number now provides in tide namelist  
     112         zcons = dn_love_number * Wave(ntide(jk))%equitide * ftide(jk) 
    111113         DO ji = 1, jpi 
    112114            DO jj = 1, jpj 
     
    119121               IF    ( Wave(ntide(jk))%nutide == 1 )  THEN  ;  zcs = zcons * SIN( 2._wp*zlat ) 
    120122               ELSEIF( Wave(ntide(jk))%nutide == 2 )  THEN  ;  zcs = zcons * COS( zlat )**2 
     123               ! Add tide potential for long period tides  
     124               ELSEIF( Wave(ntide(jk))%nutide == 0 )  THEN  ;  zcs = zcons * (0.5_wp-1.5_wp*SIN(zlat)**2._wp) 
    121125               ELSE                                         ;  zcs = 0._wp 
    122126               ENDIF 
  • NEMO/branches/UKMO/r12083_India_uncoupled/src/OCE/SBC/tide_mod.F90

    r11715 r12453  
    1616   PUBLIC   tide_init_Wave   ! called by tideini and diaharm modules 
    1717 
     18# if defined key_FES14_tides  
     19   INTEGER, PUBLIC, PARAMETER ::   jpmax_harmo = 34   !: maximum number of harmonic  
     20# else 
    1821   INTEGER, PUBLIC, PARAMETER ::   jpmax_harmo = 19   !: maximum number of harmonic 
     22# endif 
    1923 
    2024   TYPE, PUBLIC ::    tide 
     
    4145 
    4246   SUBROUTINE tide_init_Wave 
     47# if defined key_FES14_tides  
     48#     include "tide_FES14.h90"  
     49# else 
    4350#     include "tide.h90" 
     51# endif 
    4452   END SUBROUTINE tide_init_Wave 
    4553 
     
    331339         zf = zf * zf1 * zf1 
    332340         ! 
     341      CASE( 20 )                 !==  formule 20,  compound waves ( 78 x 78 x 78 x 78 )  
     342         zf1 = nodal_factort(78)  
     343         zf  = zf1 * zf1 * zf1 * zf1  
     344         ! 
    333345      CASE( 73 )                 !==  formule 73 
    334346         zs = sin(sh_I) 
  • NEMO/branches/UKMO/r12083_India_uncoupled/src/OCE/SBC/tideini.F90

    r11715 r12453  
    3333   INTEGER , PUBLIC ::   kt_tide         !: 
    3434   REAL(wp), PUBLIC ::   rdttideramp     !: 
     35   REAL(wp), PUBLIC ::   dn_love_number  !: 
    3536   REAL(wp), PUBLIC ::   rn_scal_load    !: 
    3637   CHARACTER(lc), PUBLIC ::   cn_tide_load   !:  
     
    5455      ! 
    5556      NAMELIST/nam_tide/ln_tide, ln_tide_pot, ln_scal_load, ln_read_load, cn_tide_load, & 
    56                   &     ln_tide_ramp, rn_scal_load, rdttideramp, clname 
     57                  &     ln_tide_ramp, rn_scal_load, rdttideramp, dn_love_number, clname 
    5758      !!---------------------------------------------------------------------- 
    5859      ! 
     
    7879            WRITE(numout,*) '         Read load potential from file           ln_read_load = ', ln_read_load 
    7980            WRITE(numout,*) '         Apply ramp on tides at startup          ln_tide_ramp = ', ln_tide_ramp 
     81            WRITE(numout,*) '                                              dn_love_number  = ', dn_love_number 
    8082            WRITE(numout,*) '         Fraction of SSH used in scal. approx.   rn_scal_load = ', rn_scal_load 
    8183            WRITE(numout,*) '         Duration (days) of ramp                 rdttideramp  = ', rdttideramp 
     
    99101      END DO 
    100102      !        
     103      IF (ln_tide .and.lwp) WRITE(numout,*) '                                     nb_harmo     = ', nb_harmo 
     104 
    101105      ! Ensure that tidal components have been set in namelist_cfg 
    102106      IF( nb_harmo == 0 )   CALL ctl_stop( 'tide_init : No tidal components set in nam_tide' ) 
Note: See TracChangeset for help on using the changeset viewer.