Changeset 5504 for trunk/NEMOGCM/NEMO/TOP_SRC/trcrst.F90
- Timestamp:
- 2015-06-29T14:37:35+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/TOP_SRC/trcrst.F90
r5385 r5504 226 226 & CALL ctl_stop( ' ===>>>> : problem with nittrc000 for the restart', & 227 227 & ' verify the restart file or rerun with nn_rsttr = 0 (namelist)' ) 228 IF( lk_offline ) THEN ! set the date in offline mode 229 ! Check dynamics and tracer time-step consistency and force Euler restart if changed 230 IF( iom_varid( numrtr, 'rdttrc1', ldstop = .FALSE. ) > 0 ) THEN 231 CALL iom_get( numrtr, 'rdttrc1', zrdttrc1 ) 232 IF( zrdttrc1 /= rdt * nn_dttrc ) neuler = 0 233 ENDIF 234 ! ! define ndastp and adatrj 235 IF( nn_rsttr == 2 ) THEN 228 IF( lk_offline ) THEN 229 ! ! set the date in offline mode 230 IF( ln_rsttr .AND. nn_rsttr == 2 ) THEN 236 231 CALL iom_get( numrtr, 'ndastp', zndastp ) 237 232 ndastp = NINT( zndastp ) 238 233 CALL iom_get( numrtr, 'adatrj', adatrj ) 239 ELSE234 ELSE 240 235 ndastp = ndate0 - 1 ! ndate0 read in the namelist in dom_nam 241 236 adatrj = ( REAL( nittrc000-1, wp ) * rdttra(1) ) / rday … … 250 245 ENDIF 251 246 ! 247 IF( ln_rsttr ) THEN ; neuler = 1 248 ELSE ; neuler = 0 249 ENDIF 250 ! 252 251 CALL day_init ! compute calendar 253 252 !
Note: See TracChangeset
for help on using the changeset viewer.