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

Ignore:
Timestamp:
2020-12-01T13:17:32+01:00 (3 years ago)
Author:
andmirek
Message:

Ticket #2462: update test branch

File:
1 edited

Legend:

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

    r13727 r13934  
    9191                             CALL iom_setkt( kstp - nit000 + 1, cxios_context )   ! tell iom we are at time step kstp 
    9292      IF((kstp == nitrst) .AND. lwxios) THEN 
    93          CALL iom_swap(      cwxios_context          ) 
    94          CALL iom_init_closedef(cwxios_context) 
    95          CALL iom_setkt( kstp - nit000 + 1,      cwxios_context          ) 
     93         CALL iom_swap(      cw_ocerst_cxt          ) 
     94         CALL iom_init_closedef(cw_ocerst_cxt) 
     95         CALL iom_setkt( kstp - nit000 + 1,      cw_ocerst_cxt          ) 
    9696#if defined key_top 
    97          CALL iom_swap(      cwtxios_context          ) 
    98          CALL iom_init_closedef(cwtxios_context) 
    99          CALL iom_setkt( kstp - nit000 + 1,      cwtxios_context          ) 
     97         CALL iom_swap(      cw_toprst_cxt          ) 
     98         CALL iom_init_closedef(cw_toprst_cxt) 
     99         CALL iom_setkt( kstp - nit000 + 1,      cw_toprst_cxt          ) 
    100100#endif 
    101101      ENDIF 
     
    104104#if defined key_si3 
    105105      IF(((kstp + nn_fsbc - 1) == nitrst) .AND. lwxios) THEN 
    106          CALL iom_swap(      cwixios_context          ) 
    107          CALL iom_init_closedef(cwixios_context) 
    108          CALL iom_setkt( kstp - nit000 + 1,      cwixios_context          ) 
     106         CALL iom_swap(      cw_icerst_cxt          ) 
     107         CALL iom_init_closedef(cw_icerst_cxt) 
     108         CALL iom_setkt( kstp - nit000 + 1,      cw_icerst_cxt          ) 
    109109      ENDIF 
    110110#endif 
     
    148148      IF( kstp == nit000   ) THEN 
    149149            CALL iom_close( numror )                          ! close input  ocean restart file 
    150             IF( lroxios )     CALL iom_context_finalize(      crxios_context      ) 
     150            IF( lrxios )     CALL iom_context_finalize(      cr_ocerst_cxt      ) 
    151151      ENDIF 
    152152       
     
    161161            CALL iom_close( numrow )      
    162162         ELSE 
    163             CALL iom_context_finalize( cwxios_context ) 
     163            CALL iom_context_finalize( cw_ocerst_cxt ) 
     164            iom_file(numrow)%nfid       = 0 
     165            numrow = 0 
    164166         ENDIF 
    165167         lrst_oce = .FALSE. 
Note: See TracChangeset for help on using the changeset viewer.