- Timestamp:
- 2017-11-23T16:52:17+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_r8600_xios_read_write_v2/NEMOGCM/NEMO/OPA_SRC/SBC/sbcapr.F90
r8800 r8801 19 19 USE iom ! IOM library 20 20 USE lib_mpp ! MPP library 21 USE iom_def, ONLY : lwxios 21 22 22 23 IMPLICIT NONE … … 65 66 CHARACTER(len=100) :: cn_dir ! Root directory for location of ssr files 66 67 TYPE(FLD_N) :: sn_apr ! informations about the fields to be read 67 LOGICAL :: l xios_read! read restart using XIOS?68 LOGICAL :: lrxios ! read restart using XIOS? 68 69 !! 69 70 NAMELIST/namsbc_apr/ cn_dir, sn_apr, ln_ref_apr, rn_pref, ln_apr_obc … … 110 111 CALL ctl_warn( 'sbc_apr: use inverse barometer ssh at open boundary ONLY requires ln_apr_dyn=T' ) 111 112 ! 113 IF( lwxios ) THEN 114 CALL iom_set_rstw_var_active('ssh_ibb') 115 ENDIF 112 116 END SUBROUTINE sbc_apr_init 113 117 … … 153 157 IF( ln_rstart .AND. iom_varid( numror, 'ssh_ibb', ldstop = .FALSE. ) > 0 ) THEN 154 158 IF(lwp) WRITE(numout,*) 'sbc_apr: ssh_ibb read in the restart file' 155 CALL iom_get( numror, jpdom_autoglo, 'ssh_ibb', ssh_ibb, ldxios = l xios_read) ! before inv. barometer ssh159 CALL iom_get( numror, jpdom_autoglo, 'ssh_ibb', ssh_ibb, ldxios = lrxios ) ! before inv. barometer ssh 156 160 ! 157 161 ELSE !* no restart: set from nit000 values … … 166 170 IF(lwp) WRITE(numout,*) 'sbc_apr : ssh_ib written in ocean restart file at it= ', kt,' date= ', ndastp 167 171 IF(lwp) WRITE(numout,*) '~~~~' 168 CALL iom_rstput( kt, nitrst, numrow, 'ssh_ibb' , ssh_ib ) 172 IF( lwxios ) CALL iom_swap( cwxios_context ) 173 CALL iom_rstput( kt, nitrst, numrow, 'ssh_ibb' , ssh_ib, ldxios = lwxios ) 174 IF( lwxios ) CALL iom_swap( cxios_context ) 169 175 ENDIF 170 176 !
Note: See TracChangeset
for help on using the changeset viewer.