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 10425 for NEMO/trunk/src/OCE/IOM/restart.F90 – NEMO

Ignore:
Timestamp:
2018-12-19T22:54:16+01:00 (5 years ago)
Author:
smasson
Message:

trunk: merge back dev_r10164_HPC09_ESIWACE_PREP_MERGE@10424 into the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/IOM/restart.F90

    r10068 r10425  
    2828   USE iom             ! I/O module 
    2929   USE diurnal_bulk 
     30   USE lib_mpp         ! distribued memory computing library 
    3031 
    3132   IMPLICIT NONE 
     
    9798               WRITE(numout,*) 
    9899               IF(.NOT.lwxios) THEN 
    99                   SELECT CASE ( jprstlib ) 
    100                   CASE DEFAULT         ;   WRITE(numout,*)                            & 
    101                       '             open ocean restart NetCDF file: ',TRIM(clpath)//TRIM(clname) 
    102                   END SELECT 
     100                  WRITE(numout,*) '             open ocean restart NetCDF file: ',TRIM(clpath)//TRIM(clname) 
    103101                  IF ( snc4set%luse )      WRITE(numout,*) '             opened for NetCDF4 chunking and compression' 
    104102                  IF( kt == nitrst - 1 ) THEN   ;   WRITE(numout,*) '             kt = nitrst - 1 = ', kt 
     
    109107            ! 
    110108            IF(.NOT.lwxios) THEN 
    111                CALL iom_open( TRIM(clpath)//TRIM(clname), numrow, ldwrt = .TRUE., kiolib = jprstlib ) 
     109               CALL iom_open( TRIM(clpath)//TRIM(clname), numrow, ldwrt = .TRUE. ) 
    112110            ELSE 
    113111#if defined key_iomput 
     
    137135      !!                   ***  ROUTINE rstwrite  *** 
    138136      !!                      
    139       !! ** Purpose :   Write restart fields in the format corresponding to jprstlib 
     137      !! ** Purpose :   Write restart fields in NetCDF format 
    140138      !! 
    141139      !! ** Method  :   Write in numrow when kt == nitrst in NetCDF 
     
    146144                     IF(lwxios) CALL iom_swap(      cwxios_context          ) 
    147145                     CALL iom_rstput( kt, nitrst, numrow, 'rdt'    , rdt       , ldxios = lwxios)   ! dynamics time step 
     146                     CALL iom_delay_rst( 'WRITE', 'OCE', numrow )   ! save only ocean delayed global communication variables 
    148147 
    149148      IF ( .NOT. ln_diurnal_only ) THEN 
     
    197196      !!                   ***  ROUTINE rst_read_open  *** 
    198197      !!  
    199       !! ** Purpose :   Open read files for restart (format fixed by jprstlib ) 
     198      !! ** Purpose :   Open read files for NetCDF restart 
    200199      !!  
    201200      !! ** Method  :   Use a non-zero, positive value of numror to assess whether or not 
    202201      !!                the file has already been opened 
    203202      !!---------------------------------------------------------------------- 
    204       INTEGER        ::   jlibalt = jprstlib 
    205203      LOGICAL        ::   llok 
    206204      CHARACTER(lc)  ::   clpath   ! full path to ocean output restart file 
     
    210208         IF(lwp) THEN                                             ! Contol prints 
    211209            WRITE(numout,*) 
    212             SELECT CASE ( jprstlib ) 
    213             CASE ( jpnf90    )   ;   WRITE(numout,*) 'rst_read : read oce NetCDF restart file' 
    214             END SELECT 
     210            WRITE(numout,*) 'rst_read : read oce NetCDF restart file' 
    215211            IF ( snc4set%luse )      WRITE(numout,*) 'rst_read : configured with NetCDF4 support' 
    216212            WRITE(numout,*) '~~~~~~~~' 
     
    219215         clpath = TRIM(cn_ocerst_indir) 
    220216         IF( clpath(LEN_TRIM(clpath):) /= '/' ) clpath = TRIM(clpath) // '/' 
    221          CALL iom_open( TRIM(clpath)//cn_ocerst_in, numror, kiolib = jlibalt ) 
     217         CALL iom_open( TRIM(clpath)//cn_ocerst_in, numror ) 
    222218! are we using XIOS to read the data? Part above will have to modified once XIOS 
    223219! can handle checking if variable is in the restart file (there will be no need to open 
     
    246242      !!                   ***  ROUTINE rst_read  *** 
    247243      !!  
    248       !! ** Purpose :   Read files for restart (format fixed by jprstlib ) 
     244      !! ** Purpose :   Read files for NetCDF restart 
    249245      !!  
    250246      !! ** Method  :   Read in restart.nc file fields which are necessary for restart 
     
    263259      ENDIF 
    264260 
     261      CALL iom_delay_rst( 'READ', 'OCE', numror )   ! read only ocean delayed global communication variables 
     262       
    265263      ! Diurnal DSST  
    266264      IF( ln_diurnal ) CALL iom_get( numror, jpdom_autoglo, 'Dsst' , x_dsst, ldxios = lrxios )  
Note: See TracChangeset for help on using the changeset viewer.