- Timestamp:
- 2020-05-20T16:08:51+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/r4.0-HEAD_r12713_clem_dan_fixcpl/src/OCE/step.F90
r12651 r12955 76 76 !!---------------------------------------------------------------------- 77 77 INTEGER :: ji, jj, jk ! dummy loop indice 78 INTEGER :: indic ! error indicator if < 079 78 !!gm kcall can be removed, I guess 80 79 INTEGER :: kcall ! optional integer argument (dom_vvl_sf_nxt) 81 80 !! --------------------------------------------------------------------- 82 81 #if defined key_agrif 83 IF( nstop > 0 ) return ! avoid to go further if an error was detected during previous time step82 IF( nstop > 0 ) RETURN ! avoid to go further if an error was detected during previous time step (child grid) 84 83 kstp = nit000 + Agrif_Nb_Step() 85 84 IF( lk_agrif_debug ) THEN … … 98 97 ! update I/O and calendar 99 98 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 100 indic = 0 ! reset to no error condition101 102 99 IF( kstp == nit000 ) THEN ! initialize IOM context (must be done after nemo_init for AGRIF+XIOS+OASIS) 103 100 CALL iom_init( cxios_context ) ! for model grid (including passible AGRIF zoom) … … 288 285 ! Control 289 286 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 290 CALL stp_ctl ( kstp , indic)287 CALL stp_ctl ( kstp ) 291 288 292 289 #if defined key_agrif … … 294 291 ! AGRIF update 295 292 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 296 IF( Agrif_NbStepint() == 0 .AND. nstop == 0 ) CALL Agrif_update_all( ) ! Update all components 293 IF( Agrif_NbStepint() == 0 .AND. nstop == 0 ) THEN 294 CALL Agrif_update_all( ) ! Update all components 295 ENDIF 297 296 #endif 298 297 … … 312 311 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 313 312 !!gm why lk_oasis and not lk_cpl ???? 314 IF( lk_oasis 313 IF( lk_oasis .AND. nstop == 0 ) CALL sbc_cpl_snd( kstp ) ! coupled mode : field exchanges 315 314 ! 316 315 #if defined key_iomput … … 318 317 ! Finalize contextes if end of simulation or error detected 319 318 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 320 IF( kstp == nitend .OR. indic <0 ) THEN321 CALL iom_context_finalize( cxios_context) ! needed for XIOS+AGRIF319 IF( kstp == nitend .OR. nstop > 0 ) THEN 320 CALL iom_context_finalize( cxios_context ) ! needed for XIOS+AGRIF 322 321 IF( lrxios ) CALL iom_context_finalize( crxios_context ) 323 322 IF( ln_crs ) CALL iom_context_finalize( trim(cxios_context)//"_crs" ) ! … … 328 327 ! 329 328 END SUBROUTINE stp 330 329 ! 331 330 !!====================================================================== 332 331 END MODULE step
Note: See TracChangeset
for help on using the changeset viewer.