Changeset 10425 for NEMO/trunk/src/OCE/IOM/restart.F90
- Timestamp:
- 2018-12-19T22:54:16+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/trunk/src/OCE/IOM/restart.F90
r10068 r10425 28 28 USE iom ! I/O module 29 29 USE diurnal_bulk 30 USE lib_mpp ! distribued memory computing library 30 31 31 32 IMPLICIT NONE … … 97 98 WRITE(numout,*) 98 99 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) 103 101 IF ( snc4set%luse ) WRITE(numout,*) ' opened for NetCDF4 chunking and compression' 104 102 IF( kt == nitrst - 1 ) THEN ; WRITE(numout,*) ' kt = nitrst - 1 = ', kt … … 109 107 ! 110 108 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. ) 112 110 ELSE 113 111 #if defined key_iomput … … 137 135 !! *** ROUTINE rstwrite *** 138 136 !! 139 !! ** Purpose : Write restart fields in the format corresponding to jprstlib137 !! ** Purpose : Write restart fields in NetCDF format 140 138 !! 141 139 !! ** Method : Write in numrow when kt == nitrst in NetCDF … … 146 144 IF(lwxios) CALL iom_swap( cwxios_context ) 147 145 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 148 147 149 148 IF ( .NOT. ln_diurnal_only ) THEN … … 197 196 !! *** ROUTINE rst_read_open *** 198 197 !! 199 !! ** Purpose : Open read files for restart (format fixed by jprstlib )198 !! ** Purpose : Open read files for NetCDF restart 200 199 !! 201 200 !! ** Method : Use a non-zero, positive value of numror to assess whether or not 202 201 !! the file has already been opened 203 202 !!---------------------------------------------------------------------- 204 INTEGER :: jlibalt = jprstlib205 203 LOGICAL :: llok 206 204 CHARACTER(lc) :: clpath ! full path to ocean output restart file … … 210 208 IF(lwp) THEN ! Contol prints 211 209 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' 215 211 IF ( snc4set%luse ) WRITE(numout,*) 'rst_read : configured with NetCDF4 support' 216 212 WRITE(numout,*) '~~~~~~~~' … … 219 215 clpath = TRIM(cn_ocerst_indir) 220 216 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 ) 222 218 ! are we using XIOS to read the data? Part above will have to modified once XIOS 223 219 ! can handle checking if variable is in the restart file (there will be no need to open … … 246 242 !! *** ROUTINE rst_read *** 247 243 !! 248 !! ** Purpose : Read files for restart (format fixed by jprstlib )244 !! ** Purpose : Read files for NetCDF restart 249 245 !! 250 246 !! ** Method : Read in restart.nc file fields which are necessary for restart … … 263 259 ENDIF 264 260 261 CALL iom_delay_rst( 'READ', 'OCE', numror ) ! read only ocean delayed global communication variables 262 265 263 ! Diurnal DSST 266 264 IF( ln_diurnal ) CALL iom_get( numror, jpdom_autoglo, 'Dsst' , x_dsst, ldxios = lrxios )
Note: See TracChangeset
for help on using the changeset viewer.