44 private :: land_grid_read
45 private :: land_grid_generate
51 real(RP),
private :: ldz(100)
53 character(len=H_LONG),
private :: land_grid_in_basename =
'' 54 character(len=H_LONG),
private :: land_grid_out_basename =
'' 65 namelist / param_land_grid / &
66 land_grid_in_basename, &
67 land_grid_out_basename, &
76 if(
io_l )
write(
io_fid_log,*)
'++++++ Module[GRID] / Categ[LAND GRID] / Origin[SCALElib]' 84 if(
io_l )
write(
io_fid_log,*)
'*** Not found namelist. Default used.' 85 elseif( ierr > 0 )
then 86 write(*,*)
'xxx Not appropriate names in namelist PARAM_LAND_GRID. Check!' 98 if ( land_grid_in_basename /=
'' )
then 101 if(
io_l )
write(
io_fid_log,*)
'*** Not found input grid file. Grid position is calculated.' 103 call land_grid_generate
110 '|====== Vertical Coordinate ======|' 117 '| ',
grid_lfz(k),
' ',k,
' | Atmosphere interface' 130 '|=================================|' 138 subroutine land_grid_read
150 character(len=H_LONG) :: bname
151 real(RP) :: tmp_CBFZ(
ka), tmp_CBFX(
ia), tmp_CBFY(
ja)
158 write(bname,
'(A,A,F15.3)') trim(land_grid_in_basename)
164 call fileread( tmp_cbfz(:), bname,
'CBFZ', 1,
prc_myrank )
165 call fileread( tmp_cbfy(:), bname,
'CBFX', 1,
prc_myrank )
166 call fileread( tmp_cbfy(:), bname,
'CBFY', 1,
prc_myrank )
170 write(
io_fid_log,
'(A)')
'*** Buffer layer in LAND_GRID_IN_BASENAME is different from GRID_IN_BASENAME ***' 176 write(
io_fid_log,
'(A)')
'*** Buffer layer in LAND_GRID_IN_BASENAME is different from GRID_IN_BASENAME ***' 182 write(
io_fid_log,
'(A)')
'*** Buffer layer in LAND_GRID_IN_BASENAME is different from GRID_IN_BASENAME ***' 188 end subroutine land_grid_read
192 subroutine land_grid_generate
210 end subroutine land_grid_generate
subroutine, public prc_mpistop
Abort MPI.
logical, public io_l
output log or not? (this process)
module GRID (cartesian) for land
real(rp), dimension(:), allocatable, public grid_lfz
face coordinate [m]: z, local=global
integer, public ia
of x whole cells (local, with HALO)
integer, public ka
of z whole cells (local, with HALO)
real(rp), dimension(:), allocatable, public grid_cbfx
center buffer factor [0-1]: x
subroutine, public land_grid_setup
Setup.
real(rp), dimension(:), allocatable, public grid_cbfz
center buffer factor [0-1]: z
integer, public prc_myrank
process num in local communicator
real(rp), dimension(:), allocatable, public grid_lcdz
z-length of control volume [m]
logical, public io_lnml
output log or not? (for namelist, this process)
real(rp), dimension(:), allocatable, public grid_lcz
center coordinate [m]: z, local=global
real(rp), dimension(:), allocatable, public grid_cbfy
center buffer factor [0-1]: y
integer, public io_fid_conf
Config file ID.
integer, public io_fid_log
Log file ID.
integer, public ja
of y whole cells (local, with HALO)