Changeset 12593 for NEMO/branches/2020/r12581_ticket2418/src/SAS/step.F90
- Timestamp:
- 2020-03-24T16:52:17+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/r12581_ticket2418/src/SAS/step.F90
r12377 r12593 74 74 !! -2- Outputs and diagnostics 75 75 !!---------------------------------------------------------------------- 76 INTEGER :: indic ! error indicator if < 077 !! ---------------------------------------------------------------------78 76 79 77 #if defined key_agrif 80 78 kstp = nit000 + Agrif_Nb_Step() 81 79 Kbb_a = Nbb; Kmm_a = Nnn; Krhs_a = Nrhs ! agrif_oce module copies of time level indices 82 IF 83 IF ( Agrif_Root() .and. lwp) Write(*,*) '---'84 IF (lwp) Write(*,*) 'Grid Number',Agrif_Fixed(),' time step ',kstp, 'int tstep',Agrif_NbStepint()80 IF( lk_agrif_debug ) THEN 81 IF( Agrif_Root() .and. lwp) WRITE(*,*) '---' 82 IF(lwp) WRITE(*,*) 'Grid Number', Agrif_Fixed(),' time step ', kstp, 'int tstep', Agrif_NbStepint() 85 83 ENDIF 86 87 IF ( kstp == (nit000 + 1) ) lk_agrif_fstep = .FALSE. 88 84 IF( kstp == nit000 + 1 ) lk_agrif_fstep = .FALSE. 89 85 # if defined key_iomput 90 86 IF( Agrif_Nbstepint() == 0 ) CALL iom_swap( cxios_context ) 91 87 # endif 92 88 #endif 93 indic = 0 ! although indic is not changed in stp_ctl94 ! need to keep the same interface95 89 IF( kstp == nit000 ) CALL iom_init( cxios_context ) ! iom_put initialization (must be done after nemo_init for AGRIF+XIOS+OASIS) 96 90 IF( kstp /= nit000 ) CALL day( kstp ) ! Calendar (day was already called at nit000 in day_init) … … 123 117 ! Control 124 118 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 125 CALL stp_ctl( kstp, indic ) 126 IF( indic < 0 ) THEN 127 CALL ctl_stop( 'step: indic < 0' ) 128 CALL dia_wri_state( 'output.abort', Nnn ) 129 ENDIF 130 IF( kstp == nit000 ) CALL iom_close( numror ) ! close input ocean restart file 119 CALL stp_ctl( kstp, Nnn ) 120 121 IF( kstp == nit000 ) CALL iom_close( numror ) ! close input ocean restart file 131 122 132 123 !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 133 124 ! Coupled mode 134 125 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 135 IF( lk_oasis )CALL sbc_cpl_snd( kstp, Nbb, Nnn ) ! coupled mode : field exchanges if OASIS-coupled ice126 IF( lk_oasis ) CALL sbc_cpl_snd( kstp, Nbb, Nnn ) ! coupled mode : field exchanges if OASIS-coupled ice 136 127 137 128 #if defined key_iomput … … 144 135 lrst_oce = .FALSE. 145 136 ENDIF 146 IF( kstp == nitend .OR. indic <0 ) THEN137 IF( kstp == nitend .OR. nstop > 0 ) THEN 147 138 CALL iom_context_finalize( cxios_context ) ! needed for XIOS+AGRIF 148 139 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.