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 611 for trunk/NEMO/OPA_SRC/restart.F90 – NEMO

Ignore:
Timestamp:
2007-02-21T10:24:26+01:00 (17 years ago)
Author:
opalod
Message:

nemo_v2_bugfix_015 : CT+SM : - correct dimg header record

  • overwrite variable in existing file
  • make good comments in ocean.output file related to time step write in restart file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/restart.F90

    r593 r611  
    8282         ENDIF 
    8383         ! create the file 
    84          IF(lwp) WRITE(numout,*) 
    8584         clname = TRIM(cexper)//"_"//TRIM(ADJUSTL(clkt))//"_restart" 
    86          IF(lwp) WRITE(numout,*) '             open ocean restart.output NetCDF file: '//clname 
     85         IF(lwp) THEN 
     86            WRITE(numout,*) 
     87            WRITE(numout,*) '             open ocean restart.output NetCDF file: '//clname 
     88            IF( kt == nitrst-1 ) THEN 
     89               WRITE(numout,*) '             kt = nitrst - 1 = ', kt,' date= ', ndastp 
     90            ELSE 
     91               WRITE(numout,*) '             kt = ', kt,' date= ', ndastp 
     92            ENDIF 
     93         ENDIF 
     94 
    8795         CALL iom_open( clname, numrow, ldwrt = .TRUE., kiolib = jprstlib ) 
    8896         lrst_oce = .TRUE. 
     
    103111      INTEGER, INTENT(in) ::   kt   ! ocean time-step 
    104112      !!---------------------------------------------------------------------- 
    105  
    106       IF(lwp) THEN 
    107          WRITE(numout,*) 
    108          WRITE(numout,*) 'rst_write : write ocean NetCDF restart file  kt =', kt,' date= ', ndastp 
    109          WRITE(numout,*) '~~~~~~~~~' 
    110       ENDIF 
    111113 
    112114      ! calendar control 
Note: See TracChangeset for help on using the changeset viewer.