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 895 for trunk/NEMO/OPA_SRC/DIA/diawri.F90 – NEMO

Ignore:
Timestamp:
2008-04-21T17:32:02+02:00 (16 years ago)
Author:
rblod
Message:

Fix small bugs in sea-ice (previous commit) and old flyspray: 189, 185, 161

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/DIA/diawri.F90

    r888 r895  
    169169 
    170170         ! WRITE root name in date.file for use by postpro 
    171          CALL dia_nam( clhstnam, nwrite,' ' ) 
    172          clname = 'date.file' 
    173          CALL ctlopn( inum, clname,  'UNKNOWN', 'FORMATTED', 'SEQUENTIAL', 1, numout, lwp, 1 ) 
    174          WRITE(inum,*) clhstnam 
    175          CLOSE(inum) 
     171         IF( lwp) THEN 
     172            CALL dia_nam( clhstnam, nwrite,' ' ) 
     173            clname = 'date.file' 
     174            CALL ctlopn( inum, clname,  'UNKNOWN', 'FORMATTED', 'SEQUENTIAL', 1, numout, lwp, 1 ) 
     175            WRITE(inum,*) clhstnam 
     176            CLOSE(inum) 
     177         ENDIF 
    176178 
    177179         ! Define the T grid FILE ( nid_T ) 
Note: See TracChangeset for help on using the changeset viewer.