SCALE-RM
scale_monitor_cartesC.F90
Go to the documentation of this file.
1 !-------------------------------------------------------------------------------
10 !-------------------------------------------------------------------------------
11 #include "scalelib.h"
13  !-----------------------------------------------------------------------------
14  !
15  !++ Used modules
16  !
17  use scale_precision
18  use scale_io
19  use scale_prof
24  !-----------------------------------------------------------------------------
25  implicit none
26  private
27  !-----------------------------------------------------------------------------
28  !
29  !++ Public procedures
30  !
31  public :: monitor_cartesc_setup
32 
33  !-----------------------------------------------------------------------------
34  !
35  !++ Public parameters & variables
36  !
37  !-----------------------------------------------------------------------------
38  !
39  !++ Private procedures
40  !
41  !-----------------------------------------------------------------------------
42  !
43  !++ Private parameters & variables
44  !
45  !-----------------------------------------------------------------------------
46 contains
47  !-----------------------------------------------------------------------------
49  subroutine monitor_cartesc_setup( &
50  dt, &
51  ATMOS_do, OCEAN_do, LAND_do, URBAN_do )
52  use scale_monitor, only: &
53  monitor_setup, &
75  use scale_land_grid_cartesc_real, only: &
85  implicit none
86 
87  real(DP), intent(in) :: dt
88  logical, intent(in) :: ATMOS_do
89  logical, intent(in) :: OCEAN_do
90  logical, intent(in) :: LAND_do
91  logical, intent(in) :: URBAN_do
92  !---------------------------------------------------------------------------
93 
94 
95  call monitor_setup( dt )
96 
97  ! atmos
98  if ( atmos_do ) then
99  call monitor_set_dim( ka, ks, ke, ia, is, ie, ja, js, je, &
100  "ZXY", 3, &
105  call monitor_set_dim( ka, ks, ke, ia, is, ie, ja, js, je, &
106  "WXY", 3, &
111  call monitor_set_dim( ka, ks, ke, ia, is, ie, ja, js, je, &
112  "ZUY", 3, &
117  call monitor_set_dim( ka, ks, ke, ia, is, ie, ja, js, je, &
118  "ZXV", 3, &
123  call monitor_set_dim( ka, ks, ke, ia, is, ie, ja, js, je, &
124  "XY", 2, &
127  end if
128 
129  ! ocean
130  if ( ocean_do ) then
131  call monitor_set_dim( oka, oks, oke, oia, ois, oie, oja, ojs, oje, &
132  "OXY", 3, &
137  end if
138 
139  ! land
140  if ( land_do ) then
141  call monitor_set_dim( lka, lks, lke, lia, lis, lie, lja, ljs, lje, &
142  "LXY", 3, &
147  end if
148 
149  ! urban
150  if ( urban_do ) then
151  call monitor_set_dim( uka, uks, uke, uia, uis, uie, uja, ujs, uje, &
152  "UXY", 3, &
157  end if
158 
159  return
160  end subroutine monitor_cartesc_setup
161 
162 end module scale_monitor_cartesc
subroutine, public monitor_set_dim(KA, KS, KE, IA, IS, IE, JA, JS, JE, dim_type, dim_size, area, total_area, volume, total_volume)
Set area and volume.
real(rp), dimension(:,:,:), allocatable, public ocean_grid_cartesc_real_vol
volume of grid cell
integer, public ia
of whole cells: x, local, with HALO
module land / grid / cartesianC / real
real(rp), public urban_grid_cartesc_real_totarea
total area
module land / grid / cartesianC / index
real(rp), dimension(:,:), allocatable, public atmos_grid_cartesc_real_areaxv
horizontal area ( xv, normal z) [m2]
real(rp), dimension(:,:), allocatable, public atmos_grid_cartesc_real_areauy
horizontal area ( uy, normal z) [m2]
real(rp), public atmos_grid_cartesc_real_totvolzxv
total volume (zxv, local) [m3]
subroutine, public monitor_cartesc_setup(dt, ATMOS_do, OCEAN_do, LAND_do, URBAN_do)
Setup.
real(rp), dimension(:,:,:), allocatable, public atmos_grid_cartesc_real_vol
control volume (zxy) [m3]
real(rp), public atmos_grid_cartesc_real_totvol
total volume (zxy, local) [m3]
integer, public ja
of whole cells: y, local, with HALO
real(rp), dimension(:,:), allocatable, public ocean_grid_cartesc_real_area
area of grid cell
real(rp), dimension(:,:,:), allocatable, public atmos_grid_cartesc_real_volzxv
control volume (zxv) [m3]
real(rp), public ocean_grid_cartesc_real_totarea
total area
module urban / grid / icosahedralA / index
real(rp), public atmos_grid_cartesc_real_totvolzuy
total volume (zuy, local) [m3]
integer, public is
start point of inner domain: x, local
real(rp), dimension(:,:,:), allocatable, public urban_grid_cartesc_real_vol
volume of grid cell
real(rp), public atmos_grid_cartesc_real_totareauy
total area (uy, local) [m2]
integer, public ie
end point of inner domain: x, local
real(rp), public urban_grid_cartesc_real_totvol
total volume
module atmosphere / grid / cartesC index
integer, public ke
end point of inner domain: z, local
module ocean / grid / cartesianC / real
real(rp), dimension(:,:,:), allocatable, public atmos_grid_cartesc_real_volwxy
control volume (wxy) [m3]
module MONITOR
integer, public je
end point of inner domain: y, local
real(rp), dimension(:,:), allocatable, public land_grid_cartesc_real_area
area of grid cell
real(rp), public ocean_grid_cartesc_real_totvol
total volume
integer, public ks
start point of inner domain: z, local
module MONITOR CartesC
real(rp), public land_grid_cartesc_real_totarea
total area
real(rp), dimension(:,:), allocatable, public urban_grid_cartesc_real_area
area of grid cell
integer, public js
start point of inner domain: y, local
real(rp), public atmos_grid_cartesc_real_totvolwxy
total volume (wxy, local) [m3]
module ocean / grid / cartesianC / index
module profiler
Definition: scale_prof.F90:11
module Atmosphere GRID CartesC Real(real space)
real(rp), dimension(:,:), allocatable, public atmos_grid_cartesc_real_area
horizontal area ( xy, normal z) [m2]
module PRECISION
real(rp), public atmos_grid_cartesc_real_totareaxv
total area (xv, local) [m2]
subroutine, public monitor_setup(dt)
Setup.
integer, public ka
of whole cells: z, local, with HALO
module urban / grid / cartesianC / real
module STDIO
Definition: scale_io.F90:10
real(rp), public land_grid_cartesc_real_totvol
total volume
real(rp), dimension(:,:,:), allocatable, public atmos_grid_cartesc_real_volzuy
control volume (zuy) [m3]
real(rp), dimension(:,:,:), allocatable, public land_grid_cartesc_real_vol
volume of grid cell
real(rp), public atmos_grid_cartesc_real_totarea
total area (xy, local) [m2]