Changeset 10093
- Timestamp:
- 2018-09-06T12:35:27+02:00 (6 years ago)
- Location:
- utils/tools/NESTING
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/tools/NESTING/namelist_nordic1
r10025 r10093 5 5 &coarse_grid_files 6 6 parent_coordinate_file = 'coordinates.nc' 7 parent_ meshmask_file= 'meshmask.nc'7 parent_bathy_file = 'meshmask.nc' 8 8 parent_domcfg_output = 'domain_cfg.nc' 9 9 / -
utils/tools/NESTING/namelist_nordic1_update
r10025 r10093 5 5 &coarse_grid_files 6 6 parent_coordinate_file = 'coordinates.nc' 7 parent_ meshmask_file= 'meshmask.nc'7 parent_bathy_file = 'meshmask.nc' 8 8 parent_domcfg_output = 'domain_cfg.nc' 9 9 / -
utils/tools/NESTING/namelist_nordic2
r10025 r10093 5 5 &coarse_grid_files 6 6 parent_coordinate_file = '1_coordinates.nc' 7 parent_ meshmask_file= '1_meshmask.nc'7 parent_bathy_file = '1_meshmask.nc' 8 8 parent_domcfg_output = '1_domain_cfg.nc' 9 9 / -
utils/tools/NESTING/src/agrif_create_bathy.f90
r10027 r10093 72 72 ! define names of child grid files 73 73 CALL set_child_name(parent_coordinate_file,Child_coordinates) 74 IF( TRIM(parent_ meshmask_file) .NE. '/NULL' ) CALL set_child_name(parent_meshmask_file,Childlevel_file)75 IF( TRIM(parent_ meshmask_file) .NE. '/NULL' ) CALL set_child_name(parent_domcfg_output,Child_domcfg)74 IF( TRIM(parent_bathy_file) .NE. '/NULL' ) CALL set_child_name(parent_bathy_file,Childlevel_file) 75 IF( TRIM(parent_bathy_file) .NE. '/NULL' ) CALL set_child_name(parent_domcfg_output,Child_domcfg) 76 76 ! 77 77 ! ! ------------------------------------------------------------------ … … 83 83 ! read coarse grid bathymetry and coordinates 84 84 status = Read_Coordinates(TRIM(parent_coordinate_file),G0) 85 status = Read_bathy_level(TRIM(parent_ meshmask_file),G0)85 status = Read_bathy_level(TRIM(parent_bathy_file),G0) 86 86 ! 87 87 ! read fine grid coordinates … … 411 411 status = Read_Bathymeter(TRIM(parent_bathy_meter),G0) 412 412 ELSE 413 status = Read_Bathymeter(TRIM(parent_ meshmask_file),G0)413 status = Read_Bathymeter(TRIM(parent_bathy_file),G0) 414 414 ENDIF 415 415 … … 605 605 ! store interpolation result in output file 606 606 CALL levels_to_meter(G1) ! From levels to meters 607 IF( TRIM(parent_ meshmask_file) .NE. '/NULL' ) status = Write_Bathy_level(TRIM(Childlevel_file),G1)608 IF( TRIM(parent_ meshmask_file) .NE. '/NULL' ) status = write_domcfg(TRIM(Child_domcfg),G1)607 IF( TRIM(parent_bathy_file) .NE. '/NULL' ) status = Write_Bathy_level(TRIM(Childlevel_file),G1) 608 IF( TRIM(parent_bathy_file) .NE. '/NULL' ) status = write_domcfg(TRIM(Child_domcfg),G1) 609 609 ! 610 610 WRITE(*,*) '****** Bathymetry successfully created for partial cells ******' -
utils/tools/NESTING/src/agrif_create_restart.f90
r10025 r10093 113 113 ! 114 114 CALL set_child_name(parent_coordinate_file,Childcoordinates) 115 CALL set_child_name(parent_ meshmask_file,Childbathy)115 CALL set_child_name(parent_bathy_file,Childbathy) 116 116 CALL set_child_name(parent_bathy_meter,Childbathymeter) 117 117 ! … … 165 165 ENDIF 166 166 ! 167 CALL Init_mask(parent_ meshmask_file,G0,x,y)167 CALL Init_mask(parent_bathy_file,G0,x,y) 168 168 CALL Init_mask(childbathy,G1,1,1) 169 169 -
utils/tools/NESTING/src/agrif_create_restart_trc.f90
r2455 r10093 100 100 ! 101 101 CALL set_child_name(parent_coordinate_file,Childcoordinates) 102 CALL set_child_name(parent_ meshmask_file,Childbathy)102 CALL set_child_name(parent_bathy_file,Childbathy) 103 103 CALL set_child_name(parent_bathy_meter,Childbathymeter) 104 104 ! … … 142 142 ENDIF 143 143 ! 144 CALL Init_tmask(parent_ meshmask_file,G0,x,y)144 CALL Init_tmask(parent_bathy_file,G0,x,y) 145 145 CALL Init_tmask(childbathy,G1,nxfin,nyfin) 146 146 -
utils/tools/NESTING/src/agrif_interpolation.f90
r10025 r10093 560 560 CALL set_child_name(filename,Child_file) 561 561 CALL set_child_name(parent_coordinate_file,Childcoordinates) 562 CALL set_child_name(parent_ meshmask_file,childbathy)562 CALL set_child_name(parent_bathy_file,childbathy) 563 563 WRITE(*,*) 'Child grid file name = ',TRIM(Child_file) 564 564 ! … … 602 602 ALLOCATE(mask(numlon,numlat,N)) 603 603 CALL Init_mask(childbathy,G1,1,1) 604 CALL Init_mask(parent_ meshmask_file,G0,1,1)604 CALL Init_mask(parent_bathy_file,G0,1,1) 605 605 ! 606 606 ENDIF -
utils/tools/NESTING/src/agrif_readwrite.f90
r10029 r10093 243 243 CALL write_ncdf_var('mbathy' ,dimnames,name,Grid%bathy_level,'float') 244 244 ! 245 CALL copy_ncdf_att('nav_lon',TRIM(parent_ meshmask_file),name,MINVAL(Grid%nav_lon),MAXVAL(Grid%nav_lon))246 CALL copy_ncdf_att('nav_lat',TRIM(parent_ meshmask_file),name,MINVAL(Grid%nav_lat),MAXVAL(Grid%nav_lat))247 CALL copy_ncdf_att('mbathy' ,TRIM(parent_ meshmask_file),name)245 CALL copy_ncdf_att('nav_lon',TRIM(parent_bathy_file),name,MINVAL(Grid%nav_lon),MAXVAL(Grid%nav_lon)) 246 CALL copy_ncdf_att('nav_lat',TRIM(parent_bathy_file),name,MINVAL(Grid%nav_lat),MAXVAL(Grid%nav_lat)) 247 CALL copy_ncdf_att('mbathy' ,TRIM(parent_bathy_file),name) 248 248 ! 249 249 WRITE(*,*) ' ' 250 WRITE(*,*) 'Writing bathymetry file: ',name250 WRITE(*,*) 'Writing bathymetry (levels) in: ',name 251 251 WRITE(*,*) ' ' 252 252 ! … … 473 473 ! 474 474 WRITE(*,*) ' ' 475 WRITE(*,*) 'Writing bathymetry file: ',name475 WRITE(*,*) 'Writing bathymetry (meters) in: ',name 476 476 WRITE(*,*) ' ' 477 477 ! -
utils/tools/NESTING/src/agrif_types.f90
r10025 r10093 59 59 LOGICAL :: ln_agrif_domain 60 60 ! 61 CHARACTER*100 :: parent_ meshmask_file, elevation_database, parent_bathy_meter, parent_domcfg_output61 CHARACTER*100 :: parent_bathy_file, elevation_database, parent_bathy_meter, parent_domcfg_output 62 62 CHARACTER*100 :: elevation_name, parent_batmet_name 63 63 CHARACTER*100 :: parent_coordinate_file, restart_file, updated_parent_file, updated_parent_domcfg, restart_trc_file … … 69 69 NAMELIST /input_output/iom_activated 70 70 ! 71 NAMELIST /coarse_grid_files/parent_coordinate_file, parent_ meshmask_file, parent_domcfg_output71 NAMELIST /coarse_grid_files/parent_coordinate_file, parent_bathy_file, parent_domcfg_output 72 72 ! 73 73 NAMELIST /bathymetry/new_topo, elevation_database, elevation_name, smoothing, smoothing_factor, &
Note: See TracChangeset
for help on using the changeset viewer.