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 9535 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90 – NEMO

Ignore:
Timestamp:
2018-05-01T13:22:33+02:00 (6 years ago)
Author:
andmirek
Message:

#1953 and #1962 disable XIOS related calls when key_iomput is not set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90

    r9367 r9535  
    6262      CHARACTER(lc)       ::   clpath   ! full path to ocean output restart file 
    6363      CHARACTER(LEN=52)   ::   clpname   ! ocean output restart file name including prefix for AGRIF 
     64      CHARACTER(LEN=256)  ::   clinfo    ! info character 
    6465      !!---------------------------------------------------------------------- 
    6566      ! 
     
    110111               CALL iom_open( TRIM(clpath)//TRIM(clname), numrow, ldwrt = .TRUE., kiolib = jprstlib ) 
    111112            ELSE 
     113#if defined key_iomput 
    112114               cwxios_context = "rstw_"//TRIM(ADJUSTL(clkt)) 
    113115               IF( TRIM(Agrif_CFixed()) == '0' ) THEN 
     
    119121               CALL xios_update_calendar(nitrst) 
    120122               CALL iom_swap(      cxios_context          ) 
     123#else 
     124               clinfo = 'Can not use XIOS in rst_opn' 
     125               CALL ctl_stop(TRIM(clinfo)) 
     126#endif 
    121127            ENDIF 
    122128            lrst_oce = .TRUE. 
Note: See TracChangeset for help on using the changeset viewer.