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 15687 for NEMO/branches/UKMO/NEMO_4.0.4_CO9_shelf_climate – NEMO

Ignore:
Timestamp:
2022-02-02T20:42:17+01:00 (2 years ago)
Author:
hadjt
Message:

nambdy_ssh

Set default values so ssh is used if nambdy_ssh is not defined.

Only print out tide360 on the write processor, rather than on every processor

Location:
NEMO/branches/UKMO/NEMO_4.0.4_CO9_shelf_climate/src/OCE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.4_CO9_shelf_climate/src/OCE/BDY/bdyini.F90

    r14267 r15687  
    101101902   IF( ios >  0 )   CALL ctl_nam ( ios , 'nambdy in configuration namelist' ) 
    102102      IF(lwm) WRITE ( numond, nambdy ) 
     103 
     104      ! set a default value to nambdy_ssh, so switched on if not defined in Namelist 
     105      DO ib_bdy = 1,nb_bdy 
     106        ln_ssh_bdy(ib_bdy) = .True. 
     107        rn_ssh_shift(ib_bdy) = 0. 
     108      ENDDO 
    103109       
    104110      ! davbyr Propagating ENDA's stuff from 3.6 
  • NEMO/branches/UKMO/NEMO_4.0.4_CO9_shelf_climate/src/OCE/SBC/tide_mod.F90

    r15547 r15687  
    122122          ENDIF 
    123123           
    124  
    125           IF ( ln_tide_drift   ) THEN 
    126               WRITE(numout,*) "       tides360: Tides continuous so equinoctal tides drift through the year," 
    127               WRITE(numout,*) "                 as the S2-K2 beating occurs 5 days later every year." 
     124          IF( lwp ) THEN 
     125 
     126              IF ( ln_tide_drift   ) THEN 
     127                  WRITE(numout,*) "       tides360: Tides continuous so equinoctal tides drift through the year," 
     128                  WRITE(numout,*) "                 as the S2-K2 beating occurs 5 days later every year." 
     129              ENDIF 
     130 
     131              IF ( ln_tide_compress   ) THEN 
     132                  WRITE(numout,*) "       tides360: The Tropical Year (and so some tidal periods) are compressed," 
     133                  WRITE(numout,*) "                 so the tides repeat with an annual cycle, so the " 
     134                  WRITE(numout,*) "                 the S2-K2 beating is fixed relative to the calendar, but the " 
     135                  WRITE(numout,*) "                 M2 period varies slightly." 
     136                  WRITE(numout,*) "                 Use with care, as this requires more work." 
     137              ENDIF 
     138 
     139              IF ( ( .NOT. ln_tide_drift  ) .AND. ( .NOT. ln_tide_compress ) ) THEN 
     140                  WRITE(numout,*) "       tides360: Use the default NEMO tide code, where the tides are reset " 
     141                  WRITE(numout,*) "                 at the beginning of each month, leading to a slight discontinuity" 
     142                  WRITE(numout,*) "                 in the tides, and making tidal analysis difficult." 
     143              ENDIF 
    128144          ENDIF 
    129145 
    130           IF ( ln_tide_compress   ) THEN 
    131               WRITE(numout,*) "       tides360: The Tropical Year (and so some tidal periods) are compressed," 
    132               WRITE(numout,*) "                 so the tides repeat with an annual cycle, so the " 
    133               WRITE(numout,*) "                 the S2-K2 beating is fixed relative to the calendar, but the " 
    134               WRITE(numout,*) "                 M2 period varies slightly." 
    135               WRITE(numout,*) "                 Use with care, as this requires more work." 
    136           ENDIF 
    137  
    138           IF ( ( .NOT. ln_tide_drift  ) .AND. ( .NOT. ln_tide_compress ) ) THEN 
    139               WRITE(numout,*) "       tides360: Use the default NEMO tide code, where the tides are reset " 
    140               WRITE(numout,*) "                 at the beginning of each month, leading to a slight discontinuity" 
    141               WRITE(numout,*) "                 in the tides, and making tidal analysis difficult." 
    142           ENDIF 
    143  
    144146      ELSE         
    145           WRITE(numout,*) "       tides360: Gregorian calendar so using standard tides" 
     147         IF( lwp ) WRITE(numout,*) "       tides360: Gregorian calendar so using standard tides" 
    146148      ENDIF 
    147149 
Note: See TracChangeset for help on using the changeset viewer.