- Timestamp:
- 2018-02-28T17:23:20+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90
r9209 r9367 58 58 CONTAINS 59 59 60 SUBROUTINE dom_init 60 SUBROUTINE dom_init(cdstr) 61 61 !!---------------------------------------------------------------------- 62 62 !! *** ROUTINE dom_init *** … … 76 76 INTEGER :: iconf = 0 ! local integers 77 77 CHARACTER (len=64) :: cform = "(A12, 3(A13, I7))" 78 CHARACTER (len=*), INTENT(IN) :: cdstr ! model: NEMO or SAS. Determines core restart variables 78 79 INTEGER , DIMENSION(jpi,jpj) :: ik_top , ik_bot ! top and bottom ocean level 79 80 REAL(wp), DIMENSION(jpi,jpj) :: z1_hu_0, z1_hv_0 … … 117 118 CALL dom_glo ! global domain versus local domain 118 119 CALL dom_nam ! read namelist ( namrun, namdom ) 120 ! 121 IF( lwxios ) THEN 122 !define names for restart write and set core output (restart.F90) 123 CALL iom_set_rst_vars(rst_wfields) 124 CALL iom_set_rstw_core(cdstr) 125 ENDIF 126 !reset namelist for SAS 127 IF(cdstr == 'SAS') THEN 128 IF(lrxios) THEN 129 IF(lwp) write(numout,*) 'Disable reading restart file using XIOS for SAS' 130 lrxios = .FALSE. 131 ENDIF 132 ENDIF 133 ! 119 134 CALL dom_hgr ! Horizontal mesh 120 135 CALL dom_zgr( ik_top, ik_bot ) ! Vertical mesh and bathymetry … … 275 290 & nn_it000, nn_itend , nn_date0 , nn_time0 , nn_leapy , nn_istate , & 276 291 & nn_stock, nn_write , ln_mskland , ln_clobber , nn_chunksz, nn_euler , & 277 & ln_cfmeta, ln_iscpl 292 & ln_cfmeta, ln_iscpl, ln_xios_read, nn_wxios 278 293 NAMELIST/namdom/ ln_linssh, rn_isfhmin, rn_rdt, rn_atfp, ln_crs, ln_meshmask 279 294 #if defined key_netcdf4 … … 287 302 WRITE(numout,*) '~~~~~~~ ' 288 303 ENDIF 304 ! 289 305 ! 290 306 REWIND( numnam_ref ) ! Namelist namrun in reference namelist : Parameters of the run … … 324 340 WRITE(numout,*) ' NetCDF chunksize (bytes) nn_chunksz = ', nn_chunksz 325 341 WRITE(numout,*) ' IS coupling at the restart step ln_iscpl = ', ln_iscpl 342 IF( TRIM(Agrif_CFixed()) == '0' ) THEN 343 WRITE(numout,*) ' READ restart for a single file using XIOS ln_xios_read =', ln_xios_read 344 WRITE(numout,*) ' Write restart using XIOS nn_wxios = ', nn_wxios 345 ELSE 346 WRITE(numout,*) " AGRIF: nn_wxios will be ingored. See setting for parent" 347 WRITE(numout,*) " AGRIF: ln_xios_read will be ingored. See setting for parent" 348 ENDIF 326 349 ENDIF 327 350 … … 398 421 rdt = rn_rdt 399 422 423 IF( TRIM(Agrif_CFixed()) == '0' ) THEN 424 lrxios = ln_xios_read.AND.ln_rstart 425 !set output file type for XIOS based on NEMO namelist 426 IF (nn_wxios > 0) lwxios = .TRUE. 427 nxioso = nn_wxios 428 ENDIF 429 400 430 #if defined key_netcdf4 401 431 ! ! NetCDF 4 case ("key_netcdf4" defined)
Note: See TracChangeset
for help on using the changeset viewer.