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 11837 for NEMO/branches/2019/dev_r11756_SI3restart_XIOS/src/OCE/DYN/dynspg_ts.F90 – NEMO

Ignore:
Timestamp:
2019-10-30T15:10:36+01:00 (4 years ago)
Author:
andmirek
Message:

ticket #2323 read SI3 restart with XIOS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11756_SI3restart_XIOS/src/OCE/DYN/dynspg_ts.F90

    r11536 r11837  
    934934      IF( TRIM(cdrw) == 'READ' ) THEN        ! Read/initialise  
    935935         !                                   ! --------------- 
     936         IF(lrxios) CALL iom_swap(crxios_context) 
    936937         IF( ln_rstart .AND. ln_bt_fw .AND. (neuler/=0) ) THEN    !* Read the restart file 
    937938            CALL iom_get( numror, jpdom_autoglo, 'ub2_b'  , ub2_b  (:,:), ldxios = lrxios )    
     
    954955            ENDIF 
    955956#endif 
     957         IF(lrxios) CALL iom_swap(cxios_context) 
     958         ! 
    956959         ELSE                                   !* Start from rest 
    957960            IF(lwp) WRITE(numout,*) 
     
    10891092      IF( lwxios ) THEN 
    10901093! define variables in restart file when writing with XIOS 
    1091          CALL iom_set_rstw_var_active('ub2_b') 
    1092          CALL iom_set_rstw_var_active('vb2_b') 
    1093          CALL iom_set_rstw_var_active('un_bf') 
    1094          CALL iom_set_rstw_var_active('vn_bf') 
     1094         CALL iom_set_rstw_var_active(rst_wfields, 'ub2_b') 
     1095         CALL iom_set_rstw_var_active(rst_wfields, 'vb2_b') 
     1096         CALL iom_set_rstw_var_active(rst_wfields, 'un_bf') 
     1097         CALL iom_set_rstw_var_active(rst_wfields, 'vn_bf') 
    10951098         ! 
    10961099         IF (.NOT.ln_bt_av) THEN 
    1097             CALL iom_set_rstw_var_active('sshbb_e') 
    1098             CALL iom_set_rstw_var_active('ubb_e') 
    1099             CALL iom_set_rstw_var_active('vbb_e') 
    1100             CALL iom_set_rstw_var_active('sshb_e') 
    1101             CALL iom_set_rstw_var_active('ub_e') 
    1102             CALL iom_set_rstw_var_active('vb_e') 
     1100            CALL iom_set_rstw_var_active(rst_wfields, 'sshbb_e') 
     1101            CALL iom_set_rstw_var_active(rst_wfields, 'ubb_e') 
     1102            CALL iom_set_rstw_var_active(rst_wfields, 'vbb_e') 
     1103            CALL iom_set_rstw_var_active(rst_wfields, 'sshb_e') 
     1104            CALL iom_set_rstw_var_active(rst_wfields, 'ub_e') 
     1105            CALL iom_set_rstw_var_active(rst_wfields, 'vb_e') 
    11031106         ENDIF 
    11041107#if defined key_agrif 
    11051108         ! Save time integrated fluxes 
    11061109         IF ( .NOT.Agrif_Root() ) THEN 
    1107             CALL iom_set_rstw_var_active('ub2_i_b') 
    1108             CALL iom_set_rstw_var_active('vb2_i_b') 
     1110            CALL iom_set_rstw_var_active(rst_wfields, 'ub2_i_b') 
     1111            CALL iom_set_rstw_var_active(rst_wfields, 'vb2_i_b') 
    11091112         ENDIF 
    11101113#endif 
Note: See TracChangeset for help on using the changeset viewer.