Changeset 544 for trunk/NEMO/LIM_SRC/limrst.F90
- Timestamp:
- 2006-10-20T16:23:21+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/LIM_SRC/limrst.F90
r508 r544 32 32 PUBLIC lim_rst_read ! routine called by ??? module 33 33 34 LOGICAL, PUBLIC :: lrst_ice !: logical to control the oce restart write34 LOGICAL, PUBLIC :: lrst_ice !: logical to control the ice restart write 35 35 INTEGER, PUBLIC :: numrir, numriw !: logical unit for ice restart (read and write) 36 36 … … 43 43 CONTAINS 44 44 45 # if ( defined key_mpp_mpi || defined key_mpp_shmem ) && defined key_dimgout46 !!----------------------------------------------------------------------47 !! 'key_mpp_mpi' OR 'key_mpp_shmem' MPP computing48 !! 'key_dimgout' : Direct access file (DIMG format)49 !!----------------------------------------------------------------------50 # include "limrst_dimg.h90"51 52 # else53 !!----------------------------------------------------------------------54 !! Default option NetCDF file55 !!----------------------------------------------------------------------56 57 45 SUBROUTINE lim_rst_opn( kt ) 58 46 !!---------------------------------------------------------------------- … … 69 57 IF( kt == nit000 ) lrst_ice = .FALSE. 70 58 71 IF ( kt == nitrst - 2*nfice + 1 .AND. lrst_ice ) THEN 72 CALL ctl_stop( 'lim_rst_opn: ice restart frequency must be larger than nfice' ) 73 numriw = 0 74 ELSEIF( kt == nitrst - 2*nfice + 1 .OR. nitend - nit000 +1 < 2*nfice ) THEN 75 ! beware if model runs less than 2*nfice time step 59 IF( kt == nitrst - 2*nfice + 1 .OR. nitend - nit000 + 1 <= nfice ) THEN 60 ! beware if model runs less than nfice + 1 time step 76 61 ! beware of the format used to write kt (default is i8.8, that should be large enough) 77 62 IF( nitrst > 1.0e9 ) THEN … … 84 69 clname = TRIM(cexper)//"_"//TRIM(ADJUSTL(clkt))//"_restart_ice" 85 70 IF(lwp) WRITE(numout,*) ' open ice restart.output NetCDF file: '//clname 86 CALL iom_open( clname, numriw, ldwrt = .TRUE. )71 CALL iom_open( clname, numriw, ldwrt = .TRUE., kiolib = jprstdimg ) 87 72 lrst_ice = .TRUE. 88 73 ENDIF … … 191 176 ENDIF 192 177 193 CALL iom_open ( 'restart_ice_in', numrir )178 CALL iom_open ( 'restart_ice_in', numrir, kiolib = jprstdimg ) 194 179 195 180 CALL iom_get( numrir, 'nfice' , zfice ) … … 265 250 END SUBROUTINE lim_rst_read 266 251 267 # endif268 269 252 #else 270 253 !!----------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.