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
112 '|====== Vertical Coordinate ======|' 119 '| ',
grid_lfz(k),
' ',k,
' | Atmosphere interface' 132 '|=================================|' 140 subroutine land_grid_read
152 character(len=H_LONG) :: bname
153 real(RP) :: tmp_cbfz(
ka), tmp_cbfx(
ia), tmp_cbfy(
ja)
160 write(bname,
'(A,A,F15.3)') trim(land_grid_in_basename)
166 call fileread( tmp_cbfz(:), bname,
'CBFZ', 1,
prc_myrank )
167 call fileread( tmp_cbfx(:), bname,
'CBFX', 1,
prc_myrank )
168 call fileread( tmp_cbfy(:), bname,
'CBFY', 1,
prc_myrank )
172 write(*,*)
'xxx Buffer layer in LAND_GRID_IN_BASENAME is different from GRID_IN_BASENAME' 179 write(*,*)
'xxx Buffer layer in LAND_GRID_IN_BASENAME is different from GRID_IN_BASENAME' 186 write(*,*)
'xxx Buffer layer in LAND_GRID_IN_BASENAME is different from GRID_IN_BASENAME' 192 end subroutine land_grid_read
196 subroutine land_grid_generate
214 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
logical, public io_nml
output log or not? (for namelist, this process)
integer, public ia
of whole cells: x, local, with HALO
integer, public ka
of whole cells: z, 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]
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 io_fid_nml
Log file ID (only for output namelist)
integer, public ja
of whole cells: y, local, with HALO