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

Ignore:
Timestamp:
2020-05-22T13:51:12+02:00 (4 years ago)
Author:
andmirek
Message:

Ticket #2462: read/write restart with XIOS in TOP (with debug print statements)

File:
1 edited

Legend:

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

    r12957 r12961  
    127127         CALL iom_init_closedef(cwxios_context) 
    128128         CALL iom_setkt( kstp - nit000 + 1,      cwxios_context          ) 
     129#if defined key_top 
     130         CALL iom_swap(      cwtxios_context          ) 
     131         CALL iom_init_closedef(cwtxios_context) 
     132         CALL iom_setkt( kstp - nit000 + 1,      cwtxios_context          ) 
     133#endif 
    129134      ENDIF 
    130135#if defined key_si3 
     
    346351      IF( kstp == nit000 ) THEN                          ! 1st time step only 
    347352                                        CALL iom_close( numror )   ! close input  ocean restart file 
     353         IF( lrxios )                   CALL iom_context_finalize(      crxios_context         ) 
    348354         IF(lwm)                        CALL FLUSH    ( numond )   ! flush output namelist oce 
    349355         IF(lwm .AND. numoni /= -1 )    CALL FLUSH    ( numoni )   ! flush output namelist ice (if exist) 
     
    362368      IF( kstp == nitend .OR. indic < 0 ) THEN  
    363369                      CALL iom_context_finalize(      cxios_context          ) ! needed for XIOS+AGRIF 
    364          IF( lrxios ) THEN 
    365                       CALL iom_context_finalize(      crxios_context         ) 
    366 #if defined key_si3 
    367                       CALL iom_context_finalize(      crixios_context         ) 
    368 #endif 
    369          ENDIF 
    370370         IF( ln_crs ) CALL iom_context_finalize( trim(cxios_context)//"_crs" ) !  
    371371      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.