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/IOM/in_out_manager.F90 – NEMO

Ignore:
Timestamp:
2009-10-28T11:28:21+01:00 (14 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/IOM/in_out_manager.F90

    r1601 r1685  
    7777   INTEGER            ::   nn_jctls     =    0    !: Start j indice for the SUM control 
    7878   INTEGER            ::   nn_jctle     =    0    !: End   j indice for the SUM control 
    79    INTEGER            ::   nn_isplt      =    1   !: number of processors following i 
    80    INTEGER            ::   nn_jsplt      =    1   !: number of processors following j 
     79   INTEGER            ::   nn_isplt     =    1    !: number of processors following i 
     80   INTEGER            ::   nn_jsplt     =    1    !: number of processors following j 
    8181   INTEGER            ::   nn_bench     =    0    !: benchmark parameter (0/1) 
    8282   INTEGER            ::   nn_bit_cmp   =    0    !: bit reproducibility  (0/1) 
     
    9090   !!                        logical units 
    9191   !!---------------------------------------------------------------------- 
    92    INTEGER            ::   numstp                 !: logical unit for time step 
     92   INTEGER            ::   numstp     =   -1      !: logical unit for time step 
    9393   INTEGER            ::   numout     =    6      !: logical unit for output print 
    94    INTEGER            ::   numnam                 !: logical unit for namelist 
    95    INTEGER            ::   numnam_ice             !: logical unit for ice namelist 
    96    INTEGER            ::   numevo_ice             !: logical unit for ice variables (temp. evolution) 
    97    INTEGER            ::   numsol                 !: logical unit for solver statistics 
    98    INTEGER            ::   numwri                 !: logical unit for output write 
    99    INTEGER            ::   numgap                 !: logical unit for differences diagnostic 
    100    INTEGER            ::   numbol                 !: logical unit for "bol" diagnostics 
    101    INTEGER            ::   numptr                 !: logical unit for Poleward TRansports 
    102    INTEGER            ::   numflo                 !: logical unit for drifting floats 
     94   INTEGER            ::   numnam     =   -1      !: logical unit for namelist 
     95   INTEGER            ::   numnam_ice =   -1      !: logical unit for ice namelist 
     96   INTEGER            ::   numevo_ice =   -1      !: logical unit for ice variables (temp. evolution) 
     97   INTEGER            ::   numsol     =   -1      !: logical unit for solver statistics 
    10398 
    10499   !!---------------------------------------------------------------------- 
     
    149144         IF( PRESENT(cd10) ) WRITE(numout,*) cd10 
    150145      ENDIF 
    151       CALL FLUSH(numout) 
     146                               CALL FLUSH(numout    ) 
     147      IF( numstp     /= -1 )   CALL FLUSH(numstp    ) 
     148      IF( numsol     /= -1 )   CALL FLUSH(numsol    ) 
     149      IF( numevo_ice /= -1 )   CALL FLUSH(numevo_ice) 
    152150      ! 
    153151   END SUBROUTINE ctl_stop 
Note: See TracChangeset for help on using the changeset viewer.