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/TOP_SRC/SED – 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/TOP_SRC/SED/sedini.F90

    r1290 r1581  
    1717   USE sedarr 
    1818   USE iom 
     19   USE in_out_manager  ! I/O manager 
    1920 
    2021 
     
    7677      !!---------------------------------------------------------------------- 
    7778      INTEGER :: ji, jj, ikt 
    78       CHARACTER (len=40) :: csedout 
    7979#if defined key_sed_off 
    8080      INTEGER  :: numblt          
     
    8888      !--------------------------------------- 
    8989 
    90       csedout = 'sediment.output' 
    91       CALL ctlopn( numsed, csedout, 'OLD', 'FORMATTED', 'SEQUENTIAL', & 
    92       &            1, numout, .FALSE., 1 ) 
     90      CALL ctl_opn( numsed, 'sediment.output', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. ) 
    9391 
    9492      WRITE(numsed,*) 
     
    429427 
    430428      INTEGER :: jn, jn1 
    431       CHARACTER(len=40) :: csednam 
    432429      !------------------------------------------------------- 
    433430 
     
    443440      ! Reading namelist.sed variables 
    444441      !--------------------------------- 
    445       csednam = 'namelist.sediment' 
    446       CALL ctlopn( numnamsed, csednam, 'OLD', 'FORMATTED', 'SEQUENTIAL',   & 
    447          &         1, numout, .FALSE., 1 ) 
     442      CALL ctl_opn( numnamsed, 'namelist.sediment', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. ) 
    448443 
    449444      dtsed = rdt 
Note: See TracChangeset for help on using the changeset viewer.