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 1462 – NEMO

Changeset 1462


Ignore:
Timestamp:
2009-06-08T17:40:59+02:00 (15 years ago)
Author:
rblod
Message:

Bugs in bdytides, see ticket #441

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/BDY/bdytides.F90

    r1241 r1462  
    146146      CHARACTER(len=80) :: clfile         ! full file name for tidal input file  
    147147      INTEGER ::   ipi, ipj, inum, idvar  ! temporary integers (netcdf read) 
    148       INTEGER, DIMENSION(3) :: lendta     ! length of data in the file (note may be different from nblendta!) 
     148      INTEGER, DIMENSION(3) :: lendta=0   ! length of data in the file (note may be different from nblendta!) 
    149149      REAL(wp) ::  z_arg, z_atde, z_btde, z1t, z2t            
    150150      REAL(wp), DIMENSION(jpbdta,1) ::   zdta   ! temporary array for data fields 
     
    230230         ! This is the initialisation step, so nday, nmonth, nyear are the  
    231231         ! initial date/time of the integration. 
     232           print *, nday,nmonth,nyear 
     233           nyear  = int(ndate0 / 10000  )                           ! initial year 
     234           nmonth = int((ndate0 - nyear * 10000 ) / 100 )          ! initial month 
     235           nday   = int(ndate0 - nyear * 10000 - nmonth * 100) 
    232236 
    233237         CALL uvset( 0, nday, nmonth, nyear, z_ftc, z_vplu ) 
     
    301305         z_arg = kt * rdt * rad / 3600.0 
    302306      ELSE                              ! we are in a barotropic subcycle (for timesplitting option) 
    303          z_arg = ( (kt-1) * rdt + jit * rdt / REAL(nn_baro,lwp) ) * rad / 3600.0 
     307!         z_arg = ( (kt-1) * rdt + jit * rdt / REAL(nn_baro,lwp) ) * rad / 3600.0 
     308         z_arg = ( (kt-1) * rdt + jit * rdt / REAL(nn_baro,wp) ) * rad / 3600.0 
    304309      ENDIF 
    305310 
Note: See TracChangeset for help on using the changeset viewer.