49 character(len=H_LONG),
private :: topo_in_basename =
'' 50 logical,
private :: topo_in_aggregate
51 logical,
private :: topo_in_check_coordinates = .false.
52 character(len=H_LONG),
private :: topo_out_basename =
'' 53 logical,
private :: topo_out_aggregate
54 character(len=H_MID),
private :: topo_out_title =
'SCALE-RM TOPOGRAPHY' 55 character(len=H_SHORT),
private :: topo_out_dtype =
'DEFAULT' 68 namelist / param_topo / &
71 topo_in_check_coordinates, &
80 log_info(
"TOPO_setup",*)
'Setup' 89 log_info(
"TOPO_setup",*)
'Not found namelist. Default used.' 90 elseif( ierr > 0 )
then 91 log_error(
"TOPO_setup",*)
'Not appropriate names in namelist PARAM_TOPO. Check!' 113 real(RP),
intent(inout),
optional :: Zsfc(
ia,
ja)
114 logical,
intent(in),
optional :: FILL_BND
120 if (
present(fill_bnd) ) fill_bnd_ = fill_bnd
122 if (
present(zsfc) )
then 123 call comm_vars8( zsfc(:,:), 1 )
124 call comm_wait ( zsfc(:,:), 1, fill_bnd_ )
127 call comm_wait (
topo_zsfc(:,:), 1, fill_bnd_ )
140 file_cartesc_check_coordinates, &
150 log_info(
"TOPO_read",*)
'Input topography file ' 152 if ( topo_in_basename /=
'' )
then 155 call file_cartesc_read( fid,
'TOPO',
'XY',
topo_zsfc(:,:) )
159 if ( topo_in_check_coordinates )
then 160 call file_cartesc_check_coordinates( fid )
170 log_info_cont(*)
'topography file is not specified.' 176 end subroutine topo_read
186 if ( topo_out_basename /=
'' )
then 189 log_info(
"TOPO_write",*)
'Output topography file ' 193 call file_cartesc_write(
topo_zsfc(:,:), topo_out_basename, topo_out_title, &
194 'TOPO',
'Topography',
'm',
'XY', topo_out_dtype, &
195 standard_name=
"surface_altitude", &
196 haszcoord=.false., aggregate=topo_out_aggregate )
subroutine, public topo_write
Write topography.
subroutine, public topo_fillhalo(Zsfc, FILL_BND)
HALO Communication.
integer, public ia
of whole cells: x, local, with HALO
logical, public file_aggregate
integer, public ja
of whole cells: y, local, with HALO
integer, public io_fid_conf
Config file ID.
subroutine, public topo_setup
Setup.
module atmosphere / grid / cartesC index
subroutine, public prc_abort
Abort Process.
logical, public topo_exist
topography exists?
real(rp), dimension(:,:), allocatable, public topo_zsfc
absolute ground height [m]
subroutine, public file_cartesc_flush(fid)
Flush all pending requests to a netCDF file (PnetCDF only)
subroutine, public file_cartesc_open(basename, fid, aggregate)
open a netCDF file for read
subroutine, public file_cartesc_close(fid)
Close a netCDF file.