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 12955 for NEMO/branches/2020/r4.0-HEAD_r12713_clem_dan_fixcpl/src/OCE/C1D/step_c1d.F90 – NEMO

Ignore:
Timestamp:
2020-05-20T16:08:51+02:00 (4 years ago)
Author:
smasson
Message:

Clem's branch: merge with trunk@12926

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/r4.0-HEAD_r12713_clem_dan_fixcpl/src/OCE/C1D/step_c1d.F90

    r10068 r12955  
    5454      ! 
    5555      INTEGER ::   jk       ! dummy loop indice 
    56       INTEGER ::   indic    ! error indicator if < 0 
    5756      !! --------------------------------------------------------------------- 
    58  
    59                              indic = 0                ! reset to no error condition 
    6057      IF( kstp == nit000 )   CALL iom_init( "nemo")   ! iom_put initialization (must be done after nemo_init for AGRIF+XIOS+OASIS) 
    6158      IF( kstp /= nit000 )   CALL day( kstp )         ! Calendar (day was already called at nit000 in day_init) 
     
    131128      ! Control and restarts 
    132129      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    133                              CALL stp_ctl( kstp, indic ) 
     130                             CALL stp_ctl( kstp ) 
    134131      IF( kstp == nit000 )   CALL iom_close( numror )      ! close input  ocean restart file 
    135132      IF( lrst_oce       )   CALL rst_write( kstp )        ! write output ocean restart file 
    136133      ! 
    137134#if defined key_iomput 
    138       IF( kstp == nitend .OR. indic < 0 )   CALL xios_context_finalize()   ! needed for XIOS 
     135      IF( kstp == nitend .OR. nstop > 0 )   CALL xios_context_finalize()   ! needed for XIOS 
    139136      ! 
    140137#endif 
Note: See TracChangeset for help on using the changeset viewer.