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/TOP_SRC/TRP/trdmld_trc.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/TOP_SRC/TRP/trdmld_trc.F90

    r1312 r1317  
    575575      tmltrd_trc(:,:,:,:) = tmltrd_trc(:,:,:,:) * ucf_trc 
    576576 
    577       MODULO_NTRD : IF( MOD( kt, ntrd_trc ) == 0 ) THEN           ! nitend MUST be multiple of ntrd_trc 
     577      it = kt - nit000 + 1 
     578 
     579      MODULO_NTRD : IF( MOD( it, ntrd_trc ) == 0 ) THEN           ! nitend MUST be multiple of ntrd_trc 
    578580         ! 
    579581         ztmltot (:,:,:) = 0.e0                                   ! reset arrays to zero 
     
    817819      ! ---------------------------------- 
    818820 
    819       IF( lwp .AND. MOD( kt , ntrd_trc ) == 0 ) THEN 
     821      IF( lwp .AND. MOD( it , ntrd_trc ) == 0 ) THEN 
    820822         WRITE(numout,*) ' ' 
    821823         WRITE(numout,*) 'trd_mld_trc : write passive tracer trends in the NetCDF file :' 
     
    826828      ENDIF 
    827829          
    828       it = kt - nit000 + 1 
    829  
    830830      NETCDF_OUTPUT : IF( ln_trdmld_trc_instant ) THEN            ! <<< write the trends for passive tracer instant. diags 
    831831         ! 
     
    930930# endif /* key_dimgout */ 
    931931 
    932       IF( MOD( kt, ntrd_trc ) == 0 ) THEN 
     932      IF( MOD( it, ntrd_trc ) == 0 ) THEN 
    933933         ! 
    934934         ! Reset cumulative arrays to zero 
     
    11311131      ! ---------------------------------- 
    11321132 
    1133       IF( lwp .AND. MOD( kt , ntrd_trc ) == 0 ) THEN 
     1133      ! define time axis 
     1134      it = kt - nit000 + 1 
     1135 
     1136      IF( lwp .AND. MOD( it , ntrd_trc ) == 0 ) THEN 
    11341137         WRITE(numout,*) ' ' 
    11351138         WRITE(numout,*) 'trd_mld_bio : write ML bio trends in the NetCDF file :' 
     
    11411144 
    11421145 
    1143       ! define time axis 
    1144       it = kt - nit000 + 1 
    1145  
    1146  
    11471146      ! 2. Start writing data 
    11481147      ! --------------------- 
     
    11751174# endif /* key_dimgout */ 
    11761175 
    1177       IF( MOD( kt, ntrd_trc ) == 0 ) THEN 
     1176      IF( MOD( it, ntrd_trc ) == 0 ) THEN 
    11781177         ! 
    11791178         ! III.5 Reset cumulative arrays to zero 
Note: See TracChangeset for help on using the changeset viewer.