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 12977 for NEMO/branches/2020/dev_12905_xios_restart/src/SAS/step.F90 – NEMO

Ignore:
Timestamp:
2020-05-27T09:35:03+02:00 (4 years ago)
Author:
andmirek
Message:

Ticket #2462 read restart with XIOS in SAS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_12905_xios_restart/src/SAS/step.F90

    r12969 r12977  
    9595                                                          ! need to keep the same interface  
    9696      IF( kstp == nit000 )   CALL iom_init( cxios_context ) ! iom_put initialization (must be done after nemo_init for AGRIF+XIOS+OASIS) 
    97       IF( kstp /= nit000 )   CALL day( kstp )             ! Calendar (day was already called at nit000 in day_init) 
    9897                             CALL iom_setkt( kstp - nit000 + 1, cxios_context )   ! tell iom we are at time step kstp 
    9998      IF((kstp == nitrst) .AND. lwxios) THEN 
     
    107106#endif 
    108107      ENDIF 
     108      IF( kstp /= nit000 )   CALL day( kstp )             ! Calendar (day was already called at nit000 in day_init) 
     109 
    109110#if defined key_si3 
    110111      IF(((kstp + nn_fsbc - 1) == nitrst) .AND. lwxios) THEN 
     
    153154      ! File manipulation at the end of the first time step 
    154155      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<                          
    155       IF( kstp == nit000   ) CALL iom_close( numror )                          ! close input  ocean restart file 
     156      IF( kstp == nit000   ) THEN 
     157            CALL iom_close( numror )                          ! close input  ocean restart file 
     158            IF( lroxios )     CALL iom_context_finalize(      crxios_context      ) 
     159      ENDIF 
    156160       
    157161      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
Note: See TracChangeset for help on using the changeset viewer.