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 219 for trunk/NEMO/OPA_SRC/opa.F90 – NEMO

Ignore:
Timestamp:
2005-03-18T15:59:45+01:00 (19 years ago)
Author:
opalod
Message:

CT : UPDATE154 : move the closing file step done in mppstop subroutine (in lib_mpp.F90) in the subroutine opa_closefile (in opa.F90)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/opa.F90

    r216 r219  
    233233      ENDIF 
    234234 
     235      CALL opa_closefile 
    235236      IF( lk_mpp )   CALL mppstop                          ! Close all files (mpp) 
    236237 
     
    275276   END SUBROUTINE opa_flg 
    276277 
     278   SUBROUTINE opa_closefile 
     279      !!---------------------------------------------------------------------- 
     280      !!                     ***  ROUTINE opa_closefile  *** 
     281      !! 
     282      !! ** Purpose :   Close the files 
     283      !!            
     284      !! ** Method  :  
     285      !! 
     286      !! History : 
     287      !!   9.0  !  05-01  (O. Le Galloudec)  Original code 
     288      !!---------------------------------------------------------------------- 
     289      !! * Modules used 
     290      USE dtatem        ! temperature data 
     291      USE dtasal        ! salinity data 
     292      USE dtasst        ! sea surface temperature data 
     293      !!---------------------------------------------------------------------- 
     294 
     295      IF ( lk_mpp ) CALL mppsync 
     296 
     297      ! 1. Unit close 
     298      ! ------------- 
     299 
     300      CLOSE( numnam )       ! namelist 
     301      CLOSE( numout )       ! standard model output file 
     302      CLOSE( numstp )       ! time-step file 
     303      CLOSE( numwrs )       ! ocean restart file 
     304 
     305      IF( lk_dtatem )   CLOSE( numtdt ) 
     306      IF( lk_dtasal )   CLOSE( numsdt ) 
     307      IF( lk_dtasst )   CLOSE( numsst ) 
     308 
     309      IF(lwp) CLOSE( numsol ) 
     310 
     311      IF( lk_cpl ) THEN 
     312         CLOSE( numlhf ) 
     313         CLOSE( numlts ) 
     314      ENDIF 
     315 
     316      CLOSE( numwri ) 
     317 
     318   END SUBROUTINE opa_closefile 
     319 
    277320   !!====================================================================== 
    278321END MODULE opa 
Note: See TracChangeset for help on using the changeset viewer.