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/LDF/ldfdyn_c3d.h90 – 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/LDF/ldfdyn_c3d.h90

    r473 r623  
    197197      INTEGER ::   ji, jj, jk, jn      ! dummy loop indices 
    198198      INTEGER ::   ii0, ii1, ij0, ij1  ! temporary integers 
    199       INTEGER ::   inum = 11           ! temporary logical unit 
    200       INTEGER ::   iost, iim, ijm 
     199      INTEGER ::   inum                ! temporary logical unit 
     200      INTEGER ::   iim, ijm 
    201201      INTEGER ::   ifreq, il1, il2, ij, ii 
    202202      INTEGER, DIMENSION(jpidta, jpjdta) ::   idata 
     
    223223      ! ===================== equatorial strip (20N-20S) defined at t-points 
    224224 
    225       OPEN( UNIT=inum, FILE='ahmcoef', STATUS='OLD',   & 
    226          &  FORM='FORMATTED', ACCESS='SEQUENTIAL', ERR=111 ,   & 
    227          &  IOSTAT= iost) 
    228       IF( iost == 0 ) THEN 
    229          IF(lwp) THEN 
    230             WRITE(numout,*) '     file   : ahmcoef open ok' 
    231             WRITE(numout,*) '     unit   = ', inum 
    232             WRITE(numout,*) '     status = OLD' 
    233             WRITE(numout,*) '     form   = FORMATTED' 
    234             WRITE(numout,*) '     access = SEQUENTIAL' 
    235             WRITE(numout,*) 
    236          ENDIF 
    237       ENDIF 
    238 111   CONTINUE 
    239       IF( iost /= 0 ) CALL ctl_stop( ' ',  & 
    240            &    ' ===>>>> : bad opening file: ahmcoef, verify the file ahmcoef', & 
    241            &    ' =======   ===  ' ) 
     225      CALL ctlopn( inum, 'ahmcoef', 'UNKNOWN', 'FORMATTED', 'SEQUENTIAL',   & 
     226         &         1, numout, .TRUE., 1 ) 
    242227      REWIND inum 
    243228      READ(inum,9101) clexp, iim, ijm 
Note: See TracChangeset for help on using the changeset viewer.