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 623 for trunk/NEMO/OPA_SRC/FLO/flodom.F90 – NEMO

Ignore:
Timestamp:
2007-02-26T18:26:08+01:00 (17 years ago)
Author:
opalod
Message:

nemo_v2_bugfix_024:RB: Use of ctlopn for all files (except for dimg and coupled part)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/FLO/flodom.F90

    r283 r623  
    5050      INTEGER  :: ji, jj, jk               ! DO loop index on 3 directions 
    5151      INTEGER  :: jfl, jfl1                ! number of floats    
    52       INTEGER  :: inum = 11                ! logical unit for file read 
     52      INTEGER  :: inum                     ! logical unit for file read 
    5353      INTEGER, DIMENSION ( jpnfl    )  ::   & 
    5454         iimfl, ijmfl, ikmfl,    &          ! index mesh of floats 
     
    6969         ! open the restart file  
    7070         clname='restart_float' 
    71          OPEN (inum,FILE=clname,FORM='UNFORMATTED') 
     71         CALL ctlopn( inum, clname, 'OLD', 'FORMATTED', 'SEQUENTIAL',   & 
     72            &         1, numout, .TRUE., 1 ) 
    7273         REWIND inum 
    7374 
     
    9495            ! open the init file  
    9596            clname='init_float' 
    96             OPEN(inum,FILE=clname,FORM='FORMATTED') 
     97            CALL ctlopn( inum, clname, 'OLD', 'FORMATTED', 'SEQUENTIAL',   & 
     98               &         1, numout, .TRUE., 1 ) 
    9799            DO jfl = jpnrstflo+1, jpnfl 
    98100               READ(inum,*) flxx(jfl),flyy(jfl),flzz(jfl), nisobfl(jfl),ngrpfl(jfl),jfl1 
     
    225227         ! open the init file  
    226228         clname='init_float' 
    227          OPEN(inum,FILE=clname,FORM='FORMATTED') 
     229         CALL ctlopn( inum, clname, 'OLD', 'FORMATTED', 'SEQUENTIAL',   & 
     230            &         1, numout, .TRUE., 1 ) 
    228231         READ(inum) (flxx(jfl)   , jfl=1, jpnfl),   & 
    229232                    (flyy(jfl)   , jfl=1, jpnfl),   & 
Note: See TracChangeset for help on using the changeset viewer.