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 11870 for NEMO/branches/2019/dev_r11756_SI3restart_XIOS/src/OCE/IOM/restart.F90 – NEMO

Ignore:
Timestamp:
2019-11-07T12:27:28+01:00 (4 years ago)
Author:
andmirek
Message:

Ticket #2323: open single restart write context for all restart files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11756_SI3restart_XIOS/src/OCE/IOM/restart.F90

    r11837 r11870  
    108108            ENDIF 
    109109            ! 
    110             IF(.NOT.lwxios) THEN 
     110            IF(lwxios) THEN 
     111               CALL iom_setkt( nitrst, cwxios_context ) 
     112            ELSE 
    111113               CALL iom_open( TRIM(clpath)//TRIM(clname), numrow, ldwrt = .TRUE. ) 
    112             ELSE 
    113 #if defined key_iomput 
    114                cwxios_context = "rstw_"//TRIM(ADJUSTL(clkt)) 
    115                IF( TRIM(Agrif_CFixed()) == '0' ) THEN 
    116                   clpname = clname 
    117                ELSE 
    118                   clpname = TRIM(Agrif_CFixed())//"_"//clname    
    119                ENDIF 
    120                CALL iom_init( cwxios_context, TRIM(clpath)//TRIM(clpname), .false. ) 
    121                CALL xios_update_calendar(nitrst) 
    122                CALL iom_swap(      cxios_context          ) 
    123 #else 
    124                clinfo = 'Can not use XIOS in rst_opn' 
    125                CALL ctl_stop(TRIM(clinfo)) 
    126 #endif 
    127114            ENDIF 
    128115            lrst_oce = .TRUE. 
     
    179166         IF(.NOT.lwxios) THEN 
    180167            CALL iom_close( numrow )     ! close the restart file (only at last time step) 
    181          ELSE 
    182             CALL iom_context_finalize(      cwxios_context          ) 
    183168         ENDIF 
    184169!!gm         IF( .NOT. lk_trdmld )   lrst_oce = .FALSE. 
Note: See TracChangeset for help on using the changeset viewer.