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 10860 for NEMO/branches/2019/dev_r10742_ENHANCE-12_SimonM-Tides/src/OCE/DYN/dynspg_ts.F90 – NEMO

Ignore:
Timestamp:
2019-04-11T11:35:27+02:00 (5 years ago)
Author:
smueller
Message:

Relocation of the time-of-day computation in subroutine upd_tide (module tide_mod) to its callers (ticket #2194)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r10742_ENHANCE-12_SimonM-Tides/src/OCE/DYN/dynspg_ts.F90

    r10852 r10860  
    171171      REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: ztwdmask, zuwdmask, zvwdmask ! ROMS wetting and drying masks at t,u,v points 
    172172      REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: zuwdav2, zvwdav2    ! averages over the sub-steps of zuwdmask and zvwdmask 
     173      REAL(wp) ::   zt0substep !   Time of day at the beginning of the time substep 
    173174      !!---------------------------------------------------------------------- 
    174175      ! 
     
    718719         ! Update only tidal forcing at open boundaries 
    719720         IF( ln_bdy      .AND. ln_tide )   CALL bdy_dta_tides( kt, kit=jn, time_offset= noffset+1 ) 
    720          IF( ln_tide_pot .AND. ln_tide )   CALL upd_tide     ( kt, kit=jn, time_offset= noffset   ) 
     721         ! Update tide potential at the beginning of current time substep 
     722         IF( ln_tide_pot .AND. ln_tide ) THEN 
     723            zt0substep = REAL(nsec_day, wp) - 0.5_wp*rdt + (jn + noffset - 1) * rdt / REAL(nn_baro, wp) 
     724            CALL upd_tide(zt0substep) 
     725         END IF 
    721726         ! 
    722727         ! Set extrapolation coefficients for predictor step: 
Note: See TracChangeset for help on using the changeset viewer.