Changeset 11870 for NEMO/branches/2019/dev_r11756_SI3restart_XIOS/src/ICE
- Timestamp:
- 2019-11-07T12:27:28+01:00 (5 years ago)
- Location:
- NEMO/branches/2019/dev_r11756_SI3restart_XIOS/src/ICE
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r11756_SI3restart_XIOS/src/ICE/icedia.F90
r11840 r11870 277 277 ! Write in numriw (if iter == nitrst) 278 278 ! ------------------ 279 IF(lwxios) CALL iom_swap( cw ixios_context )279 IF(lwxios) CALL iom_swap( cwxios_context ) 280 280 CALL iom_rstput( iter, nitrst, numriw, 'frc_voltop' , frc_voltop, ldxios = lwxios ) 281 281 CALL iom_rstput( iter, nitrst, numriw, 'frc_volbot' , frc_volbot, ldxios = lwxios ) -
NEMO/branches/2019/dev_r11756_SI3restart_XIOS/src/ICE/icedyn_adv_pra.F90
r11840 r11870 893 893 ! 894 894 ! ! ice thickness 895 IF(lwxios) CALL iom_swap( TRIM(cw ixios_context) )895 IF(lwxios) CALL iom_swap( TRIM(cwxios_context) ) 896 896 CALL iom_rstput( iter, nitrst, numriw, 'sxice' , sxice, ldxios = lwxios ) 897 897 CALL iom_rstput( iter, nitrst, numriw, 'syice' , syice, ldxios = lwxios ) -
NEMO/branches/2019/dev_r11756_SI3restart_XIOS/src/ICE/icedyn_rhg_evp.F90
r11840 r11870 870 870 !!---------------------------------------------------------------------- 871 871 ! 872 IF(lwxios) THEN 873 CALL iom_set_rstw_var_active(rsti_wfields, 'stress1_i' ) 874 CALL iom_set_rstw_var_active(rsti_wfields, 'stress2_i' ) 875 CALL iom_set_rstw_var_active(rsti_wfields, 'stress12_i') 876 ENDIF 877 872 878 IF( TRIM(cdrw) == 'READ' ) THEN ! Read/initialize 873 879 ! ! --------------- 874 IF(lwxios) THEN875 CALL iom_set_rstw_var_active(rsti_wfields, 'stress1_i' )876 CALL iom_set_rstw_var_active(rsti_wfields, 'stress2_i' )877 CALL iom_set_rstw_var_active(rsti_wfields, 'stress12_i')878 ENDIF879 !880 880 IF( ln_rstart ) THEN !* Read the restart file 881 881 ! … … 910 910 iter = kt + nn_fsbc - 1 ! ice restarts are written at kt == nitrst - nn_fsbc + 1 911 911 ! 912 IF(lwxios) CALL iom_swap( TRIM(cw ixios_context) )912 IF(lwxios) CALL iom_swap( TRIM(cwxios_context) ) 913 913 CALL iom_rstput( iter, nitrst, numriw, 'stress1_i' , stress1_i, ldxios = lwxios ) 914 914 CALL iom_rstput( iter, nitrst, numriw, 'stress2_i' , stress2_i, ldxios = lwxios ) -
NEMO/branches/2019/dev_r11756_SI3restart_XIOS/src/ICE/icerst.F90
r11840 r11870 81 81 ENDIF 82 82 ! 83 IF(.NOT.lwxios) THEN 83 IF(lwxios) THEN 84 CALL iom_setkt( nitrst, cwxios_context ) 85 ELSE 84 86 CALL iom_open( TRIM(clpath)//TRIM(clname), numriw, ldwrt = .TRUE., kdlev = jpl ) 85 ELSE86 #if defined key_iomput87 cwixios_context = "si3_rstw_"//TRIM(ADJUSTL(clkt))88 IF( TRIM(Agrif_CFixed()) == '0' ) THEN89 clpname = clname90 ELSE91 clpname = TRIM(Agrif_CFixed())//"_"//clname92 ENDIF93 CALL iom_init( cwixios_context, TRIM(clpath)//TRIM(clpname), .false. )94 CALL xios_update_calendar(nitrst)95 CALL iom_swap( cxios_context )96 #else97 clinfo = 'Can not use XIOS in rst_opn'98 CALL ctl_stop(TRIM(clinfo))99 #endif100 87 ENDIF 101 88 lrst_ice = .TRUE. … … 135 122 ! ------------------ 136 123 ! ! calendar control 137 IF(lwxios) CALL iom_swap( cw ixios_context )138 CALL iom_rstput( iter, nitrst, numriw, 'nn_fsbc ', REAL( nn_fsbc, wp ), ldxios = lwxios ) ! time-step124 IF(lwxios) CALL iom_swap( cwxios_context ) 125 CALL iom_rstput( iter, nitrst, numriw, 'nn_fsbc_ice', REAL( nn_fsbc, wp ), ldxios = lwxios ) ! time-step 139 126 CALL iom_rstput( iter, nitrst, numriw, 'kt_ice' , REAL( iter , wp ), ldxios = lwxios ) ! date 140 127 CALL iom_delay_rst( 'WRITE', 'ICE', numriw ) ! save only ice delayed global communication variables … … 176 163 ! ------------------ 177 164 IF( iter == nitrst ) THEN 178 IF(lwxios) THEN 179 CALL iom_context_finalize( cwixios_context ) 180 ELSE 165 IF(.NOT. lwxios) THEN 181 166 CALL iom_close( numriw ) 182 167 ENDIF … … 235 220 236 221 ! Time info 237 CALL iom_get( numrir, 'nn_fsbc ', zfice, ldxios = lrxios )222 CALL iom_get( numrir, 'nn_fsbc_ice', zfice, ldxios = lrxios ) 238 223 CALL iom_get( numrir, 'kt_ice' , ziter, ldxios = lrxios ) 239 224 IF(lwp) WRITE(numout,*) ' read ice restart file at time step : ', ziter … … 246 231 & ' control of time parameter nrstdt' ) 247 232 IF( NINT(zfice) /= nn_fsbc .AND. ABS( nrstdt ) == 1 ) & 248 &CALL ctl_stop( 'ice_rst_read ===>>>> : problem with nn_fsbc in ice restart', &233 CALL ctl_stop( 'ice_rst_read ===>>>> : problem with nn_fsbc in ice restart', & 249 234 & ' verify the file or rerun with the value 0 for the', & 250 235 & ' control of time parameter nrstdt' ) -
NEMO/branches/2019/dev_r11756_SI3restart_XIOS/src/ICE/iceupdate.F90
r11840 r11870 448 448 iter = kt + nn_fsbc - 1 ! ice restarts are written at kt == nitrst - nn_fsbc + 1 449 449 ! 450 IF(lwxios) CALL iom_swap( cw ixios_context )450 IF(lwxios) CALL iom_swap( cwxios_context ) 451 451 CALL iom_rstput( iter, nitrst, numriw, 'snwice_mass' , snwice_mass, ldxios = lwxios ) 452 452 CALL iom_rstput( iter, nitrst, numriw, 'snwice_mass_b', snwice_mass_b, ldxios = lwxios )
Note: See TracChangeset
for help on using the changeset viewer.