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/TRD/trdmld.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/TRD/trdmld.F90

    r1334 r1581  
    720720      !!---------------------------------------------------------------------- 
    721721      !! * Local declarations 
    722       INTEGER :: ilseq, jl 
     722      INTEGER :: jl 
    723723 
    724724      REAL(wp) ::   zjulian, zsto, zout 
    725725 
    726       CHARACTER (LEN=21) ::    & 
    727          clold ='OLD'        , & ! open specifier (direct access files) 
    728          clunf ='UNFORMATTED', & ! open specifier (direct access files) 
    729          clseq ='SEQUENTIAL'     ! open specifier (direct access files) 
    730726      CHARACTER (LEN=40) ::   clop 
    731727      CHARACTER (LEN=12) ::   clmxl, cltu, clsu 
     
    796792      END IF 
    797793 
    798       ilseq  = 1   ;   icount = 1   ;   ionce  = 1                            ! open specifier 
     794      icount = 1   ;   ionce  = 1                            ! open specifier 
    799795 
    800796      ! I.3 Read control surface from file ctlsurf_idx 
     
    802798  
    803799      IF( nctls == 1 ) THEN 
    804          clname = 'ctlsurf_idx' 
    805          CALL ctlopn( numbol, clname, clold, clunf, clseq, ilseq, numout, lwp, 1 ) 
    806          REWIND( numbol ) 
    807          READ  ( numbol ) nbol 
     800         CALL ctl_opn( numbol, 'ctlsurf_idx', 'OLD', 'UNFORMATTED', 'SEQUENTIAL', -1, numout, lwp ) 
     801         READ ( numbol ) nbol 
     802         CLOSE( numbol ) 
    808803      END IF 
    809804 
Note: See TracChangeset for help on using the changeset viewer.