- Timestamp:
- 2018-01-11T16:41:21+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/step.F90
r9124 r9210 280 280 IF(.NOT.ln_linssh) CALL dom_vvl_sf_swp( kstp ) ! swap of vertical scale factors 281 281 ! 282 IF( ln_diahsb ) CALL dia_hsb( kstp )! - ML - global conservation diagnostics282 IF( ln_diahsb ) CALL dia_hsb ( kstp ) ! - ML - global conservation diagnostics 283 283 284 284 !!gm : This does not only concern the dynamics ==>>> add a new title … … 287 287 !!jc: That would be better, but see comment above 288 288 !! 289 IF( lrst_oce 290 IF( ln_sto_eos 289 IF( lrst_oce ) CALL rst_write ( kstp ) ! write output ocean restart file 290 IF( ln_sto_eos ) CALL sto_rst_write( kstp ) ! write restart file for stochastic parameters 291 291 292 292 #if defined key_agrif … … 298 298 IF( Agrif_NbStepint() == 0 ) THEN ! AGRIF Update 299 299 !!jc in fact update is useless at last time step, but do it for global diagnostics 300 CALL Agrif_Update_ssh()! Update ssh301 IF(.NOT.ln_linssh) CALL Agrif_Update_vvl()! Update vertical scale factors302 CALL Agrif_Update_Tra()! Update active tracers303 CALL Agrif_Update_Dyn()! Update momentum304 # if defined key_top305 CALL Agrif_Update_Trc()! Update passive tracers306 # endif307 ENDIF 308 #endif 309 IF( ln_diaobs ) CALL dia_obs ( kstp )! obs-minus-model (assimilation) diagnostics (call after dynamics update)300 CALL Agrif_Update_ssh() ! Update ssh 301 IF(.NOT.ln_linssh) CALL Agrif_Update_vvl() ! Update vertical scale factors 302 CALL Agrif_Update_Tra() ! Update active tracers 303 CALL Agrif_Update_Dyn() ! Update momentum 304 # if defined key_top 305 CALL Agrif_Update_Trc() ! Update passive tracers 306 # endif 307 ENDIF 308 #endif 309 IF( ln_diaobs ) CALL dia_obs ( kstp ) ! obs-minus-model (assimilation) diagnostics (call after dynamics update) 310 310 311 311 !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 312 312 ! Control 313 313 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 314 CALL stp_ctl ( kstp, indic ) 315 IF( indic < 0 ) THEN 316 CALL ctl_stop( 'step: indic < 0' ) 317 CALL dia_wri_state( 'output.abort', kstp ) 318 ENDIF 319 IF( kstp == nit000 ) THEN 320 CALL iom_close( numror ) ! close input ocean restart file 321 IF(lwm) CALL FLUSH ( numond ) ! flush output namelist oce 322 IF(lwm.AND.numoni /= -1 ) & 323 & CALL FLUSH ( numoni ) ! flush output namelist ice (if exist) 314 CALL stp_ctl ( kstp, indic ) 315 316 IF( kstp == nit000 ) THEN ! 1st time step only 317 CALL iom_close( numror ) ! close input ocean restart file 318 IF(lwm) CALL FLUSH ( numond ) ! flush output namelist oce 319 IF(lwm .AND. numoni /= -1 ) CALL FLUSH ( numoni ) ! flush output namelist ice (if exist) 324 320 ENDIF 325 321 … … 337 333 #endif 338 334 ! 339 IF( ln_timing ) THEN 340 IF( ln_timing ) CALL timing_start('stp') 341 !!gm avoid the init phase during 1st time step ??? useless now no? 342 IF( kstp == nit000 ) CALL timing_reset 343 ENDIF 335 IF( ln_timing ) CALL timing_stop('stp') 344 336 ! 345 337 END SUBROUTINE stp
Note: See TracChangeset
for help on using the changeset viewer.