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 1334 for trunk/NEMO/OPA_SRC/TRD/trdvor.F90 – NEMO

Ignore:
Timestamp:
2009-03-03T15:07:48+01:00 (15 years ago)
Author:
smasson
Message:

complete work on time origin in outputs (ticket:335) + downward vertical axis (ticket:357)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/TRD/trdvor.F90

    r1317 r1334  
    312312      INTEGER, INTENT( in ) ::   kt   ! ocean time-step index 
    313313      !! 
    314       INTEGER  ::   ji, jj, jk, jl, it 
     314      INTEGER  ::   ji, jj, jk, jl, it, itmod 
    315315      REAL(wp) ::   zmean 
    316316      REAL(wp), DIMENSION(jpi,jpj) ::   zun, zvn 
     
    406406 
    407407      ! define time axis 
    408       it= kt - nit000 + 1 
     408      it = kt 
     409      itmod = kt - nit000 + 1 
    409410 
    410411      IF( MOD( it, ntrd ) == 0 ) THEN 
     
    455456      IF( kt >=  nit000+1 ) THEN 
    456457 
    457          IF( lwp .AND. MOD( it, ntrd ) == 0 ) THEN 
     458         IF( lwp .AND. MOD( itmod, ntrd ) == 0 ) THEN 
    458459            WRITE(numout,*) '' 
    459460            WRITE(numout,*) 'trd_vor : write trends in the NetCDF file at kt = ', kt 
     
    568569      IF(lwp) WRITE(numout,*) ' Name of NETCDF file ', clhstnam 
    569570      CALL histbeg( clhstnam, jpi, glamf, jpj, gphif,1, jpi,   &  ! Horizontal grid : glamt and gphit 
    570          &          1, jpj, 0, zjulian, rdt, nh_t, nidvor, domain_id=nidom ) 
     571         &          1, jpj, nit000-1, zjulian, rdt, nh_t, nidvor, domain_id=nidom ) 
    571572      CALL wheneq( jpi*jpj, fmask, 1, 1., ndexvor1, ndimvor1 )    ! surface 
    572573 
Note: See TracChangeset for help on using the changeset viewer.