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

Ignore:
Timestamp:
2009-08-05T16:53:12+02:00 (15 years ago)
Author:
smasson
Message:

ctlopn cleanup, see ticket:515 and ticket:237

File:
1 edited

Legend:

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

    r1577 r1581  
    150150      REAL(wp), DIMENSION(jpi,jpj) :: & 
    151151         zw2d                            ! temporary workspace 
    152       CHARACTER (len=80) :: clname 
    153152      !!---------------------------------------------------------------------- 
    154153      ! 
     
    209208 
    210209         ! WRITE root name in date.file for use by postpro 
    211          IF( lwp) THEN 
     210         IF(lwp) THEN 
    212211            CALL dia_nam( clhstnam, nwrite,' ' ) 
    213             clname = 'date.file' 
    214             CALL ctlopn( inum, clname,  'UNKNOWN', 'FORMATTED', 'SEQUENTIAL', 1, numout, lwp, 1 ) 
     212            CALL ctl_opn( inum, 'date.file', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 
    215213            WRITE(inum,*) clhstnam 
    216214            CLOSE(inum) 
Note: See TracChangeset for help on using the changeset viewer.