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 284 for trunk/NEMO/LIM_SRC/limwri_dimg.h90 – NEMO

Ignore:
Timestamp:
2005-09-22T12:28:03+02:00 (19 years ago)
Author:
opalod
Message:

nemo_v1_bugfix_001 : CT : to ensure the coherence between ocean & sea-ice fields if making a restart in using DIMG format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/LIM_SRC/limwri_dimg.h90

    r247 r284  
    1515    !!------------------------------------------------------------------- 
    1616    !! * Local variables 
    17     USE  diawri, ONLY : dia_wri_dimg 
     17    USE  diadimg                ! use of dia_wri_dimg 
    1818    REAL(wp),DIMENSION(1) ::   zdept 
    1919 
     
    130130    nmoyice = nmoyice + 1  
    131131    ! compute mean value if it is time to write on file 
    132     IF ( MOD(numit,nwrite) == 0 ) THEN 
     132    IF ( MOD(numit-nit000+1,nwrite) == 0 ) THEN 
    133133       rcmoy(:,:,:) = rcmoy(:,:,:) / FLOAT(nmoyice) 
    134134#else   
    135        IF ( MOD(numit,nwrite) == 0 ) THEN  
     135       IF ( MOD(numit-nit000+1,nwrite) == 0 ) THEN  
    136136          !  case of instantaneaous output rcmoy(:,:, 1:jpnoumax ) = 0.e0 
    137137          DO jj = 2 , jpjm1 
Note: See TracChangeset for help on using the changeset viewer.