New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 13193 for NEMO/branches/2020/dev_r12377_KERNEL-06_techene_e3/src/OCE/step.F90 – NEMO

Ignore:
Timestamp:
2020-07-01T15:42:06+02:00 (4 years ago)
Author:
smasson
Message:

better e3: update with trunk@13136 see #2385

Location:
NEMO/branches/2020/dev_r12377_KERNEL-06_techene_e3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r12377_KERNEL-06_techene_e3

    • Property svn:externals
      •  

        old new  
        88 
        99# SETTE 
        10 ^/utils/CI/sette@HEAD         sette 
         10^/utils/CI/sette@12931        sette 
  • NEMO/branches/2020/dev_r12377_KERNEL-06_techene_e3/src/OCE/step.F90

    r12724 r13193  
    8686      !!---------------------------------------------------------------------- 
    8787      INTEGER ::   ji, jj, jk   ! dummy loop indice 
    88       INTEGER ::   indic        ! error indicator if < 0 
    8988!!gm kcall can be removed, I guess 
    9089      INTEGER ::   kcall        ! optional integer argument (dom_vvl_sf_nxt) 
    9190      !! --------------------------------------------------------------------- 
    9291#if defined key_agrif 
    93       IF( nstop > 0 ) return   ! avoid to go further if an error was detected during previous time step  
     92      IF( nstop > 0 ) RETURN   ! avoid to go further if an error was detected during previous time step (child grid) 
    9493      kstp = nit000 + Agrif_Nb_Step() 
    9594      Kbb_a = Nbb; Kmm_a = Nnn; Krhs_a = Nrhs   ! agrif_oce module copies of time level indices 
     
    119118      ! update I/O and calendar  
    120119      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    121                              indic = 0                ! reset to no error condition 
    122                               
    123120      IF( kstp == nit000 ) THEN                       ! initialize IOM context (must be done after nemo_init for AGRIF+XIOS+OASIS) 
    124                              CALL iom_init( cxios_context, ld_closedef=.FALSE. )   ! for model grid (including passible AGRIF zoom) 
     121                             CALL iom_init( cxios_context, ld_closedef=.FALSE. )   ! for model grid (including possible AGRIF zoom) 
    125122         IF( lk_diamlr   )   CALL dia_mlr_iom_init    ! with additional setup for multiple-linear-regression analysis 
    126123                             CALL iom_init_closedef 
     
    318315                         Kbb_a = Nbb; Kmm_a = Nnn; Krhs_a = Nrhs      ! agrif_oce module copies of time level indices 
    319316                         CALL Agrif_Integrate_ChildGrids( stp )       ! allows to finish all the Child Grids before updating 
     317 
    320318#endif 
    321319      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    322320      ! Control 
    323321      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    324                          CALL stp_ctl      ( kstp, Nbb, Nnn, indic ) 
     322                         CALL stp_ctl      ( kstp, Nnn ) 
     323 
    325324#if defined key_agrif 
    326325      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    330329                         CALL Agrif_update_all( )                  ! Update all components 
    331330      ENDIF 
    332 #endif 
    333       IF( ln_diaobs  )   CALL dia_obs      ( kstp, Nnn )      ! obs-minus-model (assimilation) diagnostics (call after dynamics update) 
     331 
     332#endif 
     333      IF( ln_diaobs .AND. nstop == 0 )  CALL dia_obs( kstp, Nnn )  ! obs-minus-model (assimilation) diags (after dynamics update) 
    334334 
    335335      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    345345      ! Coupled mode 
    346346      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    347 !!gm why lk_oasis and not lk_cpl ???? 
    348       IF( lk_oasis   )   CALL sbc_cpl_snd( kstp, Nbb, Nnn )        ! coupled mode : field exchanges 
     347      IF( lk_oasis .AND. nstop == 0 )   CALL sbc_cpl_snd( kstp, Nbb, Nnn )     ! coupled mode : field exchanges 
    349348      ! 
    350349#if defined key_iomput 
     
    352351      ! Finalize contextes if end of simulation or error detected 
    353352      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<                          
    354       IF( kstp == nitend .OR. indic < 0 ) THEN  
     353      IF( kstp == nitend .OR. nstop > 0 ) THEN  
    355354                      CALL iom_context_finalize(      cxios_context          ) ! needed for XIOS+AGRIF 
    356355         IF( lrxios ) CALL iom_context_finalize(      crxios_context         ) 
Note: See TracChangeset for help on using the changeset viewer.