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 10380 for NEMO/branches/2018/dev_r10164_HPC09_ESIWACE_PREP_MERGE/src/OCE/IOM/restart.F90 – NEMO

Ignore:
Timestamp:
2018-12-11T09:27:54+01:00 (5 years ago)
Author:
smasson
Message:

dev_r10164_HPC09_ESIWACE_PREP_MERGE: iom cleaning: (1) get rid of jpnf90, jprstlib, jlibalt, iolib and (2) improve iom_getatt and iom_putatt, see #2133

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2018/dev_r10164_HPC09_ESIWACE_PREP_MERGE/src/OCE/IOM/restart.F90

    r10359 r10380  
    9797               WRITE(numout,*) 
    9898               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 
     99                  WRITE(numout,*) '             open ocean restart NetCDF file: ',TRIM(clpath)//TRIM(clname) 
    103100                  IF ( snc4set%luse )      WRITE(numout,*) '             opened for NetCDF4 chunking and compression' 
    104101                  IF( kt == nitrst - 1 ) THEN   ;   WRITE(numout,*) '             kt = nitrst - 1 = ', kt 
     
    109106            ! 
    110107            IF(.NOT.lwxios) THEN 
    111                CALL iom_open( TRIM(clpath)//TRIM(clname), numrow, ldwrt = .TRUE., kiolib = jprstlib ) 
     108               CALL iom_open( TRIM(clpath)//TRIM(clname), numrow, ldwrt = .TRUE. ) 
    112109            ELSE 
    113110#if defined key_iomput 
     
    137134      !!                   ***  ROUTINE rstwrite  *** 
    138135      !!                      
    139       !! ** Purpose :   Write restart fields in the format corresponding to jprstlib 
     136      !! ** Purpose :   Write restart fields in NetCDF format 
    140137      !! 
    141138      !! ** Method  :   Write in numrow when kt == nitrst in NetCDF 
     
    201198      !!                   ***  ROUTINE rst_read_open  *** 
    202199      !!  
    203       !! ** Purpose :   Open read files for restart (format fixed by jprstlib ) 
     200      !! ** Purpose :   Open read files for NetCDF restart 
    204201      !!  
    205202      !! ** Method  :   Use a non-zero, positive value of numror to assess whether or not 
    206203      !!                the file has already been opened 
    207204      !!---------------------------------------------------------------------- 
    208       INTEGER        ::   jlibalt = jprstlib 
    209205      LOGICAL        ::   llok 
    210206      CHARACTER(lc)  ::   clpath   ! full path to ocean output restart file 
     
    214210         IF(lwp) THEN                                             ! Contol prints 
    215211            WRITE(numout,*) 
    216             SELECT CASE ( jprstlib ) 
    217             CASE ( jpnf90    )   ;   WRITE(numout,*) 'rst_read : read oce NetCDF restart file' 
    218             END SELECT 
     212            WRITE(numout,*) 'rst_read : read oce NetCDF restart file' 
    219213            IF ( snc4set%luse )      WRITE(numout,*) 'rst_read : configured with NetCDF4 support' 
    220214            WRITE(numout,*) '~~~~~~~~' 
     
    223217         clpath = TRIM(cn_ocerst_indir) 
    224218         IF( clpath(LEN_TRIM(clpath):) /= '/' ) clpath = TRIM(clpath) // '/' 
    225          CALL iom_open( TRIM(clpath)//cn_ocerst_in, numror, kiolib = jlibalt ) 
     219         CALL iom_open( TRIM(clpath)//cn_ocerst_in, numror ) 
    226220! are we using XIOS to read the data? Part above will have to modified once XIOS 
    227221! can handle checking if variable is in the restart file (there will be no need to open 
     
    250244      !!                   ***  ROUTINE rst_read  *** 
    251245      !!  
    252       !! ** Purpose :   Read files for restart (format fixed by jprstlib ) 
     246      !! ** Purpose :   Read files for NetCDF restart 
    253247      !!  
    254248      !! ** Method  :   Read in restart.nc file fields which are necessary for restart 
Note: See TracChangeset for help on using the changeset viewer.