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/opa.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/opa.F90

    r1627 r1685  
    386386      IF( lk_mpp )   CALL mppsync 
    387387      ! 
    388       IF(lwp) CLOSE( numstp )   ! time-step file 
    389       IF(lwp) CLOSE( numsol )   ! solver file 
    390       ! 
    391       CALL iom_close            ! close all input/output files 
    392       ! 
    393       CLOSE( numnam )           ! namelist 
    394       CLOSE( numout )           ! standard model output file 
     388      CALL iom_close                                 ! close all input/output files managed by iom_* 
     389      ! 
     390      IF( numstp     /= -1 )   CLOSE( numstp     )   ! time-step file 
     391      IF( numsol     /= -1 )   CLOSE( numsol     )   ! solver file 
     392      IF( numnam     /= -1 )   CLOSE( numnam     )   ! oce namelist 
     393      IF( numnam_ice /= -1 )   CLOSE( numnam_ice )   ! ice namelist 
     394      IF( numevo_ice /= -1 )   CLOSE( numevo_ice )   ! ice variables (temp. evolution) 
     395      IF( numout     /=  6 )   CLOSE( numout     )   ! standard model output file 
     396      numout = 6   ! redefine numout in case it is used after this point... 
    395397      ! 
    396398   END SUBROUTINE opa_closefile 
Note: See TracChangeset for help on using the changeset viewer.