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 8161 for branches/UKMO/dev_r5518_GO6_package_XIOS_read/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90 – NEMO

Ignore:
Timestamp:
2017-06-12T14:07:00+02:00 (7 years ago)
Author:
andmirek
Message:

few small bug fixes and support for Agrif restart read

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_GO6_package_XIOS_read/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90

    r8153 r8161  
    365365   TYPE(xios_filegroup) :: filegroup_hdl 
    366366   INTEGER :: i 
    367  
    368         rst_file = TRIM(cn_ocerst_indir)//TRIM(cn_ocerst_in) 
     367   CHARACTER(lc)  ::   clpath 
     368 
     369        clpath = TRIM(cn_ocerst_indir) 
     370        IF( clpath(LEN_TRIM(clpath):) /= '/' ) clpath = TRIM(clpath) // '/' 
     371        IF( TRIM(Agrif_CFixed()) == '0' ) THEN 
     372           rst_file = TRIM(cn_ocerst_indir)//TRIM(cn_ocerst_in) 
     373        ELSE 
     374           rst_file = TRIM(cn_ocerst_indir)//'1_'//TRIM(cn_ocerst_in) 
     375        ENDIF 
    369376!set name of the restart file and enable available fields 
    370377        if(lwp) WRITE(numout,*) 'Setting restart filename (for XIOS) to: ',rst_file 
     
    397404#if defined key_iomput 
    398405      TYPE(xios_context) :: nemo_hdl 
     406 
    399407      IF( TRIM(Agrif_CFixed()) == '0' ) THEN 
    400408        CALL xios_get_handle(TRIM(cdname),nemo_hdl) 
Note: See TracChangeset for help on using the changeset viewer.