- Timestamp:
- 2017-12-12T11:41:19+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_METO_2017/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90
r8985 r8987 61 61 CONTAINS 62 62 63 SUBROUTINE dom_init 63 SUBROUTINE dom_init(cdstr) 64 64 !!---------------------------------------------------------------------- 65 65 !! *** ROUTINE dom_init *** … … 79 79 INTEGER :: iconf = 0 ! local integers 80 80 CHARACTER (len=64) :: cform = "(A12, 3(A13, I7))" 81 CHARACTER (len=*), INTENT(IN) :: cdstr ! model: NEMO or SAS. Determines core restart variables 81 82 INTEGER , DIMENSION(jpi,jpj) :: ik_top , ik_bot ! top and bottom ocean level 82 83 REAL(wp), DIMENSION(jpi,jpj) :: z1_hu_0, z1_hv_0 … … 128 129 CALL dom_glo ! global domain versus local domain 129 130 CALL dom_nam ! read namelist ( namrun, namdom ) 131 ! 132 IF( lwxios ) THEN 133 !define names for restart write and set core output (restart.F90) 134 CALL iom_set_rst_vars(rst_wfields) 135 CALL iom_set_rstw_core(cdstr) 136 ENDIF 137 !reset namelist for SAS 138 IF(cdstr == 'SAS') THEN 139 IF(lrxios) THEN 140 IF(lwp) write(numout,*) 'Disable reading restart file using XIOS for SAS' 141 lrxios = .FALSE. 142 ENDIF 143 ENDIF 144 ! 130 145 CALL dom_clo( cn_cfg, nn_cfg ) ! Closed seas and lake 131 146 CALL dom_hgr ! Horizontal mesh … … 285 300 & nn_it000, nn_itend , nn_date0 , nn_time0 , nn_leapy , nn_istate , & 286 301 & nn_stock, nn_write , ln_mskland , ln_clobber , nn_chunksz, nn_euler , & 287 & ln_cfmeta, ln_iscpl 302 & ln_cfmeta, ln_iscpl, ln_xios_read, nn_wxios 288 303 NAMELIST/namdom/ ln_linssh, nn_closea, nn_msh, rn_isfhmin, rn_rdt, rn_atfp, ln_crs 289 304 #if defined key_netcdf4 … … 293 308 !!---------------------------------------------------------------------- 294 309 ! 310 ln_xios_read = .false. ! set in case ln_xios_read is not in namelist 311 nn_wxios = 0 295 312 REWIND( numnam_ref ) ! Namelist namrun in reference namelist : Parameters of the run 296 313 READ ( numnam_ref, namrun, IOSTAT = ios, ERR = 901) … … 333 350 WRITE(numout,*) ' NetCDF chunksize (bytes) nn_chunksz = ', nn_chunksz 334 351 WRITE(numout,*) ' IS coupling at the restart step ln_iscpl = ', ln_iscpl 352 IF( TRIM(Agrif_CFixed()) == '0' ) THEN 353 WRITE(numout,*) ' READ restart for a single file using XIOS ln_xios_read =', ln_xios_read 354 WRITE(numout,*) ' Write restart using XIOS nn_wxios = ', nn_wxios 355 ELSE 356 WRITE(numout,*) " AGRIF: nn_wxios will be ingored. See setting for parent" 357 WRITE(numout,*) " AGRIF: ln_xios_read will be ingored. See setting for parent" 358 ENDIF 335 359 ENDIF 336 360 … … 413 437 rdt = rn_rdt 414 438 439 IF( TRIM(Agrif_CFixed()) == '0' ) THEN 440 lrxios = ln_xios_read.AND.ln_rstart 441 !set output file type for XIOS based on NEMO namelist 442 IF (nn_wxios > 0) lwxios = .TRUE. 443 nxioso = nn_wxios 444 ENDIF 445 415 446 #if defined key_netcdf4 416 447 ! ! NetCDF 4 case ("key_netcdf4" defined)
Note: See TracChangeset
for help on using the changeset viewer.