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 8269 for branches/UKMO/test_moci_test_suite – NEMO

Ignore:
Timestamp:
2017-07-03T17:39:41+02:00 (7 years ago)
Author:
andmirek
Message:

fix restart read with XIOS whne ln_restart is false

Location:
branches/UKMO/test_moci_test_suite/NEMOGCM/NEMO/OPA_SRC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/test_moci_test_suite/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90

    r8243 r8269  
    212212      nwrite = nn_write 
    213213      neuler = nn_euler 
    214       lxios_read = ln_xios_read 
     214      lxios_read = ln_xios_read.and.ln_rstart 
    215215      IF ( neuler == 1 .AND. .NOT. ln_rstart ) THEN 
    216216         WRITE(ctmp1,*) 'ln_rstart =.FALSE., nn_euler is forced to 0 ' 
  • branches/UKMO/test_moci_test_suite/NEMOGCM/NEMO/OPA_SRC/IOM/iom_def.F90

    r8243 r8269  
    8282 
    8383   INTEGER, PARAMETER, PUBLIC                   :: max_rst_fields = 85   
    84 !  CHARACTER(len=30),DIMENSION(max_rst_fields), PUBLIC   :: rst_fields ! names of variables in restart file 
    8584 
    8685   TYPE, PUBLIC :: RST_FIELD   
  • branches/UKMO/test_moci_test_suite/NEMOGCM/NEMO/OPA_SRC/step.F90

    r7924 r8269  
    385385      IF( kstp == nitend .OR. indic < 0 ) THEN  
    386386                      CALL iom_context_finalize(      cxios_context          ) ! needed for XIOS+AGRIF 
    387                       CALL iom_context_finalize(      rxios_context          ) 
     387                      IF(lxios_read) CALL iom_context_finalize(      rxios_context          ) 
    388388         IF( ln_crs ) CALL iom_context_finalize( trim(cxios_context)//"_crs" ) !  
    389389      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.