SCALE-RM
Functions/Subroutines | Variables
scale_land_grid_cartesc_real Module Reference

module land / grid / cartesianC / real More...

Functions/Subroutines

subroutine, public land_grid_cartesc_real_setup
 Setup real grid. More...
 
subroutine, public land_grid_cartesc_real_finalize
 Finalize. More...
 
subroutine, public land_grid_cartesc_real_set_areavol
 

Variables

real(rp), dimension(:,:), allocatable, public land_grid_cartesc_real_area
 area of grid cell More...
 
real(rp), public land_grid_cartesc_real_totarea
 total area More...
 
real(rp), dimension(:,:,:), allocatable, public land_grid_cartesc_real_vol
 volume of grid cell More...
 
real(rp), public land_grid_cartesc_real_totvol
 total volume More...
 

Detailed Description

module land / grid / cartesianC / real

Description
Grid module for cartesian coordinate for land
Author
Team SCALE

Function/Subroutine Documentation

◆ land_grid_cartesc_real_setup()

subroutine, public scale_land_grid_cartesc_real::land_grid_cartesc_real_setup

Setup real grid.

Definition at line 54 of file scale_land_grid_cartesC_real.F90.

54 
55  ! at this moment, horizontal grid is identical to that of the atmosphere
56  allocate( land_grid_cartesc_real_area( lia,lja) )
57  allocate( land_grid_cartesc_real_vol(lka,lia,lja) )
58  !$acc enter data create(LAND_GRID_CARTESC_REAL_AREA, LAND_GRID_CARTESC_REAL_VOL)
59 
60  return

References land_grid_cartesc_real_area, land_grid_cartesc_real_vol, scale_land_grid_cartesc_index::lia, scale_land_grid_cartesc_index::lja, and scale_land_grid_cartesc_index::lka.

Referenced by mod_rm_driver::rm_driver(), and mod_rm_prep::rm_prep().

Here is the caller graph for this function:

◆ land_grid_cartesc_real_finalize()

subroutine, public scale_land_grid_cartesc_real::land_grid_cartesc_real_finalize

Finalize.

Definition at line 66 of file scale_land_grid_cartesC_real.F90.

66  implicit none
67 
68  !$acc exit data delete(LAND_GRID_CARTESC_REAL_AREA, LAND_GRID_CARTESC_REAL_VOL)
69  deallocate( land_grid_cartesc_real_area )
70  deallocate( land_grid_cartesc_real_vol )
71 
72  return

References land_grid_cartesc_real_area, and land_grid_cartesc_real_vol.

Referenced by mod_rm_driver::rm_driver(), and mod_rm_prep::rm_prep().

Here is the caller graph for this function:

◆ land_grid_cartesc_real_set_areavol()

subroutine, public scale_land_grid_cartesc_real::land_grid_cartesc_real_set_areavol

Definition at line 77 of file scale_land_grid_cartesC_real.F90.

79  use scale_land_grid_cartesc, only: &
81  use scale_file_cartesc, only: &
83  use scale_landuse, only: &
85 
86  integer :: k, i, j
87 
88  do j = 1, lja
89  do i = 1, lia
90  land_grid_cartesc_real_area(i,j) = atmos_grid_cartesc_real_area(i,j) * landuse_fact_land(i,j)
91  end do
92  end do
93  !$acc update device(LAND_GRID_CARTESC_REAL_AREA) async
94 
95  land_grid_cartesc_real_totarea = 0.0_rp
96  do j = ljs, lje
97  do i = lis, lie
98  land_grid_cartesc_real_totarea = land_grid_cartesc_real_totarea + land_grid_cartesc_real_area(i,j)
99  end do
100  end do
101 
102  do j = 1, lja
103  do i = 1, lia
104  do k = lks, lke
105  land_grid_cartesc_real_vol(k,i,j) = land_grid_cartesc_real_area(i,j) * land_grid_cartesc_cdz(k)
106  enddo
107  enddo
108  enddo
109  !$acc update device(LAND_GRID_CARTESC_REAL_VOL) async
110 
111  land_grid_cartesc_real_totvol = 0.0_rp
112  do j = ljs, lje
113  do i = lis, lie
114  do k = lks, lke
115  land_grid_cartesc_real_totvol = land_grid_cartesc_real_totvol + land_grid_cartesc_real_vol(k,i,j)
116  end do
117  end do
118  end do
119 
120  call file_cartesc_set_coordinates_land( land_grid_cartesc_real_vol(:,:,:) ) ! [IN]
121  !$acc wait
122 
123  return

References scale_atmos_grid_cartesc_real::atmos_grid_cartesc_real_area, scale_file_cartesc::file_cartesc_set_coordinates_land(), scale_land_grid_cartesc::land_grid_cartesc_cdz, land_grid_cartesc_real_area, land_grid_cartesc_real_totarea, land_grid_cartesc_real_totvol, land_grid_cartesc_real_vol, scale_landuse::landuse_fact_land, scale_land_grid_cartesc_index::lia, scale_land_grid_cartesc_index::lie, scale_land_grid_cartesc_index::lis, scale_land_grid_cartesc_index::lja, scale_land_grid_cartesc_index::lje, scale_land_grid_cartesc_index::ljs, scale_land_grid_cartesc_index::lke, and scale_land_grid_cartesc_index::lks.

Referenced by mod_mkinit::read_sounding(), mod_rm_driver::rm_driver(), and mod_rm_prep::rm_prep().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ land_grid_cartesc_real_area

real(rp), dimension(:,:), allocatable, public scale_land_grid_cartesc_real::land_grid_cartesc_real_area

area of grid cell

Definition at line 36 of file scale_land_grid_cartesC_real.F90.

36  real(RP), public, allocatable :: LAND_GRID_CARTESC_REAL_AREA(:,:)

Referenced by land_grid_cartesc_real_finalize(), land_grid_cartesc_real_set_areavol(), land_grid_cartesc_real_setup(), mod_land_vars::land_vars_check(), and scale_monitor_cartesc::monitor_cartesc_setup().

◆ land_grid_cartesc_real_totarea

real(rp), public scale_land_grid_cartesc_real::land_grid_cartesc_real_totarea

total area

Definition at line 37 of file scale_land_grid_cartesC_real.F90.

37  real(RP), public :: LAND_GRID_CARTESC_REAL_TOTAREA

Referenced by land_grid_cartesc_real_set_areavol(), mod_land_vars::land_vars_check(), and scale_monitor_cartesc::monitor_cartesc_setup().

◆ land_grid_cartesc_real_vol

real(rp), dimension (:,:,:), allocatable, public scale_land_grid_cartesc_real::land_grid_cartesc_real_vol

◆ land_grid_cartesc_real_totvol

real(rp), public scale_land_grid_cartesc_real::land_grid_cartesc_real_totvol

total volume

Definition at line 39 of file scale_land_grid_cartesC_real.F90.

39  real(RP), public :: LAND_GRID_CARTESC_REAL_TOTVOL

Referenced by land_grid_cartesc_real_set_areavol(), mod_land_vars::land_vars_check(), and scale_monitor_cartesc::monitor_cartesc_setup().

scale_file_cartesc::file_cartesc_set_coordinates_land
subroutine, public file_cartesc_set_coordinates_land(VOL)
set volume for land
Definition: scale_file_cartesC.F90:570
scale_land_grid_cartesc::land_grid_cartesc_cdz
real(rp), dimension(:), allocatable, public land_grid_cartesc_cdz
z-length of control volume [m]
Definition: scale_land_grid_cartesC.F90:37
scale_atmos_grid_cartesc_real
module Atmosphere GRID CartesC Real(real space)
Definition: scale_atmos_grid_cartesC_real.F90:11
scale_atmos_grid_cartesc_real::atmos_grid_cartesc_real_area
real(rp), dimension(:,:), allocatable, public atmos_grid_cartesc_real_area
horizontal area ( xy, normal z) [m2]
Definition: scale_atmos_grid_cartesC_real.F90:66
scale_landuse::landuse_fact_land
real(rp), dimension(:,:), allocatable, public landuse_fact_land
land factor
Definition: scale_landuse.F90:46
scale_land_grid_cartesc
module land / grid / cartesianC
Definition: scale_land_grid_cartesC.F90:11
scale_landuse
module LANDUSE
Definition: scale_landuse.F90:19
scale_file_cartesc
module file / cartesianC
Definition: scale_file_cartesC.F90:11