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 1685 for trunk/NEMO/OPA_SRC/TRD/trdmld.F90 – NEMO

Ignore:
Timestamp:
2009-10-28T11:28:21+01:00 (15 years ago)
Author:
smasson
Message:

cleaning of logical units (use, flush and close), see ticket:570

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/TRD/trdmld.F90

    r1601 r1685  
    721721      !! * Local declarations 
    722722      INTEGER :: jl 
     723      INTEGER :: inum   ! logical unit 
    723724 
    724725      REAL(wp) ::   zjulian, zsto, zout 
     
    798799  
    799800      IF( nn_ctls == 1 ) THEN 
    800          CALL ctl_opn( numbol, 'ctlsurf_idx', 'OLD', 'UNFORMATTED', 'SEQUENTIAL', -1, numout, lwp ) 
    801          READ ( numbol ) nbol 
    802          CLOSE( numbol ) 
     801         CALL ctl_opn( inum, 'ctlsurf_idx', 'OLD', 'UNFORMATTED', 'SEQUENTIAL', -1, numout, lwp ) 
     802         READ ( inum ) nbol 
     803         CLOSE( inum ) 
    803804      END IF 
    804805 
Note: See TracChangeset for help on using the changeset viewer.