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 9969 for branches/UKMO/dev_merge_2017_CICE_interface/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90 – NEMO

Ignore:
Timestamp:
2018-07-19T10:07:31+02:00 (6 years ago)
Author:
timgraham
Message:

Picked all the changes in IOM from the trunk as it was crashing in calls to XIOS.
Added/corrected allocate calls in sbc_ice.F90 for CICE case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_merge_2017_CICE_interface/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90

    r9499 r9969  
    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 
     
    116118                  clpname = TRIM(Agrif_CFixed())//"_"//clname    
    117119               ENDIF 
    118                CALL iom_init( cwxios_context, TRIM(clpath)//TRIM(clpname)) 
     120               CALL iom_init( cwxios_context, TRIM(clpath)//TRIM(clpname), .false. ) 
    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. 
     
    222228             IF( .NOT.lxios_set ) THEN 
    223229                 IF(lwp) WRITE(numout,*) 'Enable restart reading by XIOS' 
    224                  CALL iom_init( crxios_context ) 
     230                 CALL iom_init( crxios_context, ld_tmppatch = .false. ) 
    225231                 lxios_set = .TRUE. 
    226232             ENDIF 
    227233         ENDIF 
    228234         IF( TRIM(Agrif_CFixed()) /= '0' .AND. lrxios) THEN 
    229              CALL iom_init( crxios_context ) 
     235             CALL iom_init( crxios_context, ld_tmppatch = .false. ) 
    230236             IF(lwp) WRITE(numout,*) 'Enable restart reading by XIOS for AGRIF' 
    231237             lxios_set = .TRUE. 
Note: See TracChangeset for help on using the changeset viewer.