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/LIM_SRC_3/limwri.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/LIM_SRC_3/limwri.F90

    r1312 r1334  
    112112         nice, nhorid, ndim, niter, ndepid 
    113113      INTEGER , SAVE ::      & 
    114          nicea, nhorida, nitera, ndimitd 
     114         nicea, nhorida, ndimitd 
    115115      INTEGER , DIMENSION( jpij ) , SAVE ::  & 
    116116         ndex51 
     
    141141         ENDIF 
    142142         zout     = nwrite * rdt_ice / nn_fsbc 
    143          niter    = 0 
     143         niter    = nit000 - 1 
    144144         zdept(1) = 0. 
    145145 
     
    147147         zjulian = zjulian - adatrj   !   set calendar origin to the beginning of the experiment 
    148148         CALL dia_nam ( clhstnam, nwrite, 'icemod' ) 
    149          CALL histbeg ( clhstnam, jpi, glamt, jpj, gphit, 1, jpi, 1, jpj, 0, zjulian, rdt_ice, nhorid, nice, domain_id=nidom ) 
    150          CALL histvert( nice, "deptht", "Vertical T levels", "m", 1, zdept, ndepid) 
     149         CALL histbeg ( clhstnam, jpi, glamt, jpj, gphit, 1, jpi, 1, jpj, nit000-1, zjulian, rdt_ice,   & 
     150            &           nhorid, nice, domain_id=nidom ) 
     151         CALL histvert( nice, "deptht", "Vertical T levels", "m", 1, zdept, ndepid, "down") 
    151152         CALL wheneq  ( jpij , tmask(:,:,1), 1, 1., ndex51, ndim) 
    152153 
     
    169170         clop     = "ave(x)" 
    170171         zout     = nwrite * rdt_ice / nn_fsbc 
    171          nitera   = 0 
    172172         zdept(1) = 0. 
    173173 
     
    175175         CALL histbeg ( clhstnama, jpi, glamt, jpj, gphit,         & 
    176176            1, jpi, 1, jpj,        & ! zoom 
    177             0, zjulian, rdt_ice,   & ! time 
     177            nit000 -1, zjulian, rdt_ice,   & ! time 
    178178            nhorida,               & ! ? linked with horizontal ... 
    179179            nicea , domain_id=nidom)                  ! file  
     
    316316      END DO 
    317317 
    318       IF ( ( nn_fsbc * niter + nit000 - 1 ) >= nitend .OR. kindic < 0 ) THEN 
     318      IF ( ( nn_fsbc * niter ) >= nitend .OR. kindic < 0 ) THEN 
    319319         IF( lwp) WRITE(numout,*) ' Closing the icemod file ' 
    320320         CALL histclo( nice ) 
     
    375375         !     not yet implemented 
    376376 
    377          IF ( ( nn_fsbc * niter + nit000 - 1 ) >= nitend .OR. kindic < 0 ) THEN 
     377         IF ( ( nn_fsbc * niter ) >= nitend .OR. kindic < 0 ) THEN 
    378378            IF(lwp) WRITE(numout,*) ' Closing the icemod file ' 
    379379            CALL histclo( nicea )  
Note: See TracChangeset for help on using the changeset viewer.