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 11840 for NEMO/branches/2019/dev_r11756_SI3restart_XIOS/src/ICE/iceupdate.F90 – NEMO

Ignore:
Timestamp:
2019-10-31T16:30:50+01:00 (4 years ago)
Author:
andmirek
Message:

Ticket #2323 write SI3 restart with XIOS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11756_SI3restart_XIOS/src/ICE/iceupdate.F90

    r11837 r11840  
    398398      ! 
    399399      CALL update_rst( 'READ' )  !* read or initialize all required files 
     400      IF( lwxios ) THEN 
     401         CALL iom_set_rstw_var_active(rsti_wfields, 'snwice_mass') 
     402         CALL iom_set_rstw_var_active(rsti_wfields, 'snwice_mass_b') 
     403      ENDIF 
    400404      ! 
    401405   END SUBROUTINE ice_update_init 
     
    444448         iter = kt + nn_fsbc - 1             ! ice restarts are written at kt == nitrst - nn_fsbc + 1 
    445449         ! 
    446          CALL iom_rstput( iter, nitrst, numriw, 'snwice_mass'  , snwice_mass   ) 
    447          CALL iom_rstput( iter, nitrst, numriw, 'snwice_mass_b', snwice_mass_b ) 
     450         IF(lwxios) CALL iom_swap(      cwixios_context          ) 
     451         CALL iom_rstput( iter, nitrst, numriw, 'snwice_mass'  , snwice_mass, ldxios = lwxios   ) 
     452         CALL iom_rstput( iter, nitrst, numriw, 'snwice_mass_b', snwice_mass_b, ldxios = lwxios ) 
     453         IF(lwxios) CALL iom_swap(      cxios_context          ) 
    448454         ! 
    449455      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.