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 12205 for NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/BDY/bdydta.F90 – NEMO

Ignore:
Timestamp:
2019-12-12T11:52:50+01:00 (4 years ago)
Author:
acc
Message:

2019/dev_r11943_MERGE_2019: Merge in dev_r11879_ENHANCE-05_SimonM-Harmonic_Analysis. SETTE tested

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/BDY/bdydta.F90

    r12145 r12205  
    2323   USE phycst         ! physical constants 
    2424   USE sbcapr         ! atmospheric pressure forcing 
    25    USE sbctide        ! Tidal forcing or not 
     25   USE tide_mod, ONLY: ln_tide ! tidal forcing 
    2626   USE bdy_oce        ! ocean open boundary conditions   
    2727   USE bdytides       ! tidal forcing at boundaries 
     
    7575CONTAINS 
    7676 
    77    SUBROUTINE bdy_dta( kt, Kmm, kit, kt_offset ) 
     77   SUBROUTINE bdy_dta( kt, Kmm, kt_offset ) 
    7878      !!---------------------------------------------------------------------- 
    7979      !!                   ***  SUBROUTINE bdy_dta  *** 
     
    8686      INTEGER, INTENT(in)           ::   kt           ! ocean time-step index  
    8787      INTEGER, INTENT(in)           ::   Kmm          ! ocean time level index 
    88       INTEGER, INTENT(in), OPTIONAL ::   kit          ! subcycle time-step index (for timesplitting option) 
    89       INTEGER, INTENT(in), OPTIONAL ::   kt_offset    ! time offset in units of timesteps. NB. if kit 
     88      INTEGER, INTENT(in), OPTIONAL ::   kt_offset    ! time offset in units of timesteps 
    9089      !                                               ! is present then units = subcycle timesteps. 
    9190      !                                               ! kt_offset = 0 => get data at "now" time level 
     
    106105      ! Initialise data arrays once for all from initial conditions where required 
    107106      !--------------------------------------------------------------------------- 
    108       IF( kt == nit000 .AND. .NOT.PRESENT(kit) ) THEN 
     107      IF( kt == nit000 ) THEN 
    109108 
    110109         ! Calculate depth-mean currents 
     
    217216         ! read/update all bdy data 
    218217         ! ------------------------ 
    219          CALL fld_read( kt, 1, bf_alias, kit = kit, kt_offset = kt_offset ) 
     218         CALL fld_read( kt, 1, bf_alias, kt_offset = kt_offset ) 
    220219         ! apply some corrections in some specific cases... 
    221220         ! -------------------------------------------------- 
     
    275274            END DO 
    276275         ENDIF   ! ltotvel 
    277  
    278          ! update tidal harmonic forcing 
    279          IF( PRESENT(kit) .AND. nn_dyn2d_dta(jbdy) .GE. 2 ) THEN 
    280             CALL bdytide_update( kt = kt, idx = idx_bdy(jbdy), dta = dta_alias, td = tides(jbdy),   &  
    281                &                 kit = kit, kt_offset = kt_offset ) 
    282          ENDIF 
    283276 
    284277         !  atm surface pressure : add inverted barometer effect to ssh if it was read 
Note: See TracChangeset for help on using the changeset viewer.