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

Ignore:
Timestamp:
2009-02-17T17:31:42+01:00 (15 years ago)
Author:
smasson
Message:

nwrite = modulo referenced to nit000 in all ouputs, see ticket:339

File:
1 edited

Legend:

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

    r1312 r1317  
    405405      !  ============================================= 
    406406 
    407       IF( MOD( kt - nit000+1, ntrd ) == 0 ) THEN 
     407      ! define time axis 
     408      it= kt - nit000 + 1 
     409 
     410      IF( MOD( it, ntrd ) == 0 ) THEN 
    408411 
    409412         ! III.1 compute total trend 
     
    452455      IF( kt >=  nit000+1 ) THEN 
    453456 
    454          ! define time axis 
    455          it= kt-nit000+1 
    456          IF( lwp .AND. MOD( kt, ntrd ) == 0 ) THEN 
     457         IF( lwp .AND. MOD( it, ntrd ) == 0 ) THEN 
    457458            WRITE(numout,*) '' 
    458459            WRITE(numout,*) 'trd_vor : write trends in the NetCDF file at kt = ', kt 
     
    481482      ENDIF 
    482483      ! 
    483       IF( MOD( kt - nit000+1, ntrd ) == 0 ) rotot(:,:)=0 
     484      IF( MOD( it, ntrd ) == 0 ) rotot(:,:)=0 
    484485      ! 
    485486      IF( kt == nitend )   CALL histclo( nidvor ) 
Note: See TracChangeset for help on using the changeset viewer.