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/CFC – NEMO

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

ctlopn cleanup, see ticket:515 and ticket:237

Location:
trunk/NEMO/TOP_SRC/CFC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/TOP_SRC/CFC/trcini_cfc.F90

    r1542 r1581  
    1616   USE trc             ! TOP variables 
    1717   USE trcsms_cfc          ! CFC sms trends 
     18   USE in_out_manager  ! I/O manager 
    1819 
    1920   IMPLICIT NONE 
     
    2122 
    2223   PUBLIC   trc_ini_cfc   ! called by trcini.F90 module 
    23  
    24    CHARACTER (len=34) ::   clname = 'cfc1112.atm'   ! ??? 
    2524 
    2625   INTEGER  ::   inum                   ! unit number 
     
    8988      IF(lwp) WRITE(numout,*) 'read of formatted file cfc1112atm' 
    9089       
    91       CALL ctlopn( inum, clname, 'OLD', 'FORMATTED', 'SEQUENTIAL',   & 
    92          &           1, numout, .FALSE., 1 ) 
     90      CALL ctl_opn( inum, 'cfc1112.atm', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. ) 
    9391      REWIND(inum) 
    9492       
  • trunk/NEMO/TOP_SRC/CFC/trclsm_cfc.F90

    r1255 r1581  
    1616   USE trc             ! TOP variables 
    1717   USE trcsms_cfc      ! CFC specific variable 
     18   USE in_out_manager  ! I/O manager 
    1819 
    1920   IMPLICIT NONE 
     
    4142      !! ** input   :   Namelist namcfc 
    4243      !!---------------------------------------------------------------------- 
    43       CHARACTER (len=32) ::   clname = 'namelist_cfc' 
    4444      INTEGER ::   numnatc 
    4545#if defined key_trc_diaadd 
     
    6565 
    6666      !                             ! Open namelist file 
    67       CALL ctlopn( numnatc, clname, 'OLD', 'FORMATTED', 'SEQUENTIAL',  1, numout, .FALSE., 1 ) 
     67      CALL ctl_opn( numnatc, 'namelist_cfc', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. ) 
    6868          
    6969      READ( numnatc , namcfcdate )     ! read namelist 
Note: See TracChangeset for help on using the changeset viewer.