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 10840 for NEMO/branches/2019/dev_r10742_ENHANCE-12_SimonM-Tides/src/OCE/DIA/diaharm.F90 – NEMO

Ignore:
Timestamp:
2019-04-04T19:09:12+02:00 (5 years ago)
Author:
smueller
Message:

Simplification of initialisation of tidal-constituent parameters (module tide_mod) (ticket #2194)

File:
1 edited

Legend:

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

    r10836 r10840  
    7171      INTEGER :: jh, nhan, jk, ji 
    7272      INTEGER ::   ios                 ! Local integer output status for namelist read 
    73       TYPE(tide),          DIMENSION(:), POINTER ::   tide_components ! Selected tidal components 
    7473      TYPE(tide_harmonic), DIMENSION(:), POINTER ::   tide_harmonics  ! Oscillation parameters of selected tidal components 
    7574 
     
    109108         &                        CALL ctl_stop( 'dia_harm_init : analysis time span must be a multiple of nstep_han' ) 
    110109 
    111       ! Request parameters for tidal components that have been selected for 
    112       ! harmonic analysis 
    113       CALL tide_init_components(tname, tide_components) 
     110      ! Initialize oscillation parameters for tidal components that have been 
     111      ! selected for harmonic analysis 
     112      ! --------------------------------------------------------------------- 
     113      CALL tide_init_harmonics(tname, tide_harmonics) 
    114114      ! Number of tidal components selected for harmonic analysis 
    115       nb_ana = size(tide_components) 
     115      nb_ana = size(tide_harmonics) 
    116116      ! 
    117117      IF(lwp) THEN 
     
    126126         CALL ctl_stop( 'dia_harm_init', ctmp1, ctmp2 ) 
    127127      ENDIF 
    128  
    129       ! Initialize oscillation parameters of selected tidal components 
    130       ! -------------------------------------------------------------- 
    131       CALL tide_init_harmonics( tide_components, tide_harmonics) 
    132128 
    133129      IF(lwp) WRITE(numout,*) 'Analysed frequency  : ',nb_ana ,'Frequency ' 
Note: See TracChangeset for help on using the changeset viewer.