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/OBC/obcrst.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/OBC/obcrst.F90

    r474 r623  
    6666 
    6767      !! * Local declarations 
    68       INTEGER ::   ji, jj, jk, ios 
    69       INTEGER ::   inum = 11          ! temporary logical unit 
     68      INTEGER ::   ji, jj, jk 
     69      INTEGER ::   inum               ! temporary logical unit 
    7070      INTEGER ::   ibloc, nreclo, jrec, jt, jb  
    7171      INTEGER ::   jfoe, jfow, ifon, ifos 
     
    9696         ! 1.1 Open file 
    9797         ! ------------- 
    98          OPEN( UNIT   = inum,                 & 
    99                IOSTAT = ios,                  & 
    100                FILE   = 'restart.obc.output', & 
    101                ACCESS = 'DIRECT',             & 
    102                RECL   =  nreclo,              & 
    103                FORM   = 'UNFORMATTED' ) 
    104          IF( ios > 0 ) CALL ctl_stop( '        Pbm to OPEN the restart.obc.output file ' ) 
     98 
     99         CALL ctlopn( inum, 'restart.obc.output', 'UNKNOWN', 'UNFORMATTED', 'DIRECT',   & 
     100            &         nreclo, numout, .TRUE., 1 ) 
    105101  
    106102         ! 1.2 Write header 
     
    352348      ! 0.1 Open files 
    353349      ! --------------- 
    354       OPEN( UNIT   =  inum,       & 
    355             IOSTAT =  ios,          & 
    356             FILE   = 'restart.obc', & 
    357             ACCESS = 'DIRECT',      & 
    358             RECL   =  nreclo,       & 
    359             FORM   = 'UNFORMATTED' ) 
    360       IF( ios > 0 ) CALL ctl_stop( '        Pbm to OPEN the restart.obc file ' ) 
     350      CALL ctlopn( inum, 'restart.obc.output', 'UNKNOWN', 'UNFORMATTED', 'DIRECT',   & 
     351         &         nreclo, numout, .TRUE., 1 ) 
    361352 
    362353      ! 1. Read 
Note: See TracChangeset for help on using the changeset viewer.