SCALE-RM
scale_land_grid_cartesC_index.F90
Go to the documentation of this file.
1 !-------------------------------------------------------------------------------
9 !-------------------------------------------------------------------------------
10 #include "scalelib.h"
12  !-----------------------------------------------------------------------------
13  !
14  !++ used modules
15  !
16  use scale_precision
17  use scale_io
18  use scale_prof
19  !-----------------------------------------------------------------------------
20  implicit none
21  private
22  !-----------------------------------------------------------------------------
23  !
24  !++ Public procedure
25  !
27 
28  !-----------------------------------------------------------------------------
29  !
30  !++ Public parameters & variables
31  !
32  integer, public :: lkmax = -1 ! # of computational cells: z for land
33  integer, public :: limax = -1 ! # of computational cells: x for land
34  integer, public :: ljmax = -1 ! # of computational cells: y for land
35 
36  integer, public :: lka = -1 ! # of total grids: z for land, local
37  integer, public :: lia ! # of total grids: x for land, local
38  integer, public :: lja ! # of total grids: y for land, local
39 
40  integer, public :: lks ! start point of inner domain: z for land, local
41  integer, public :: lke ! end point of inner domain: z for land, local
42  integer, public :: lis ! start point of inner domain: x for land, local
43 
44  integer, public :: lie ! end point of inner domain: x for land, local
45  integer, public :: ljs ! start point of inner domain: y for land, local
46  integer, public :: lje ! end point of inner domain: y for land, local
47 
48  !-----------------------------------------------------------------------------
49  !
50  !++ Private procedure
51  !
52  !-----------------------------------------------------------------------------
53  !
54  !++ Private parameters & variables
55  !
56  !-----------------------------------------------------------------------------
57 contains
58  !-----------------------------------------------------------------------------
61  use scale_prc, only: &
62  prc_abort
64  imax, &
65  ia, is, ie, &
66  jmax, &
67  ja, js, je
68  implicit none
69 
70  namelist / param_land_grid_cartesc_index / &
71  lkmax
72 
73  integer :: ierr
74  !---------------------------------------------------------------------------
75 
76  log_newline
77  log_info("LAND_GRID_CARTESC_INDEX_setup",*) 'Setup'
78 
79  !--- read namelist
80  rewind(io_fid_conf)
81  read(io_fid_conf,nml=param_land_grid_cartesc_index,iostat=ierr)
82  if( ierr < 0 ) then !--- missing
83  log_info("LAND_GRID_CARTESC_INDEX_setup",*) 'Not found namelist. Default used.'
84  elseif( ierr > 0 ) then !--- fatal error
85  log_error("LAND_GRID_CARTESC_INDEX_setup",*) 'Not appropriate names in namelist PARAM_LAND_GRID_CARTESC_INDEX. Check!'
86  call prc_abort
87  endif
88  log_nml(param_land_grid_cartesc_index)
89 
90  if ( lkmax < 1 ) then
91  log_error("LAND_GRID_CARTESC_INDEX_setup",*) 'LKMAX must be >= 1 ', lkmax
92  call prc_abort
93  end if
94 
95  lks = 1
96  lke = lkmax
97  lka = lkmax
98 
99  log_newline
100  log_info("LAND_GRID_CARTESC_INDEX_setup",*) 'Land grid index information '
101  log_info_cont('(1x,A,I6,A,I6,A,I6)') 'z-axis levels :', lkmax
102 
103  ! at this moment horizontal grid is same as that in atmosphere
104  limax = imax
105  lia = ia
106  lis = is
107  lie = ie
108 
109  ljmax = jmax
110  lja = ja
111  ljs = js
112  lje = je
113 
114  return
115  end subroutine land_grid_cartesc_index_setup
116 
integer, public jmax
of computational cells: y, local
integer, public imax
of computational cells: x, local
integer, public ia
of whole cells: x, local, with HALO
module land / grid / cartesianC / index
integer, public ja
of whole cells: y, local, with HALO
integer, public io_fid_conf
Config file ID.
Definition: scale_io.F90:55
subroutine, public land_grid_cartesc_index_setup
Setup.
integer, public is
start point of inner domain: x, local
integer, public ie
end point of inner domain: x, local
module atmosphere / grid / cartesC index
module PROCESS
Definition: scale_prc.F90:11
integer, public je
end point of inner domain: y, local
subroutine, public prc_abort
Abort Process.
Definition: scale_prc.F90:338
integer, public js
start point of inner domain: y, local
module profiler
Definition: scale_prof.F90:11
module PRECISION
module STDIO
Definition: scale_io.F90:10