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 – NEMO

Changeset 219 for trunk/NEMO/OPA_SRC


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)

Location:
trunk/NEMO/OPA_SRC
Files:
2 edited

Legend:

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

    r181 r219  
    27922792    !! 
    27932793    !!---------------------------------------------------------------------- 
    2794     !! * Modules used 
    2795     USE cpl_oce        ! ??? 
    2796     USE dtatem         ! ??? 
    2797     USE dtasal         ! ??? 
    2798     USE dtasst         ! ??? 
    2799  
    28002794    !! * Local declarations 
    28012795    INTEGER ::   info 
    28022796    !!---------------------------------------------------------------------- 
    28032797 
    2804     CALL mppsync 
    2805  
    2806     ! 1. Unit close 
    2807     ! ------------- 
    2808  
    2809     CLOSE( numnam )       ! namelist 
    2810     CLOSE( numout )       ! standard model output file 
    2811     CLOSE( numstp )       ! time-step file 
    2812     CLOSE( numwrs )       ! ocean restart file 
    2813  
    2814 !!!bug      IF(lwp .AND. lk_isl ) CLOSE( numisp ) 
    2815  
    2816     IF( lk_dtatem )   CLOSE( numtdt ) 
    2817     IF( lk_dtasal )   CLOSE( numsdt ) 
    2818     IF( lk_dtasst )   CLOSE( numsst ) 
    2819  
    2820      !!bug      CLOSE( numfl1 ) 
    2821  
    2822     IF(lwp) CLOSE( numsol ) 
    2823  
    2824     IF( lk_cpl ) THEN 
    2825        CLOSE( numlhf ) 
    2826        CLOSE( numlts ) 
    2827     ENDIF 
    2828  
    2829  
    2830     ! 2. Mpp synchroneus 
     2798    ! 1. Mpp synchroneus 
    28312799    ! ------------------ 
    28322800 
    2833     CLOSE( numwri ) 
    28342801    CALL mppsync 
    28352802#if defined key_mpp_mpi 
  • 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.