SCALE-RM
Functions/Subroutines
mod_atmos_phy_ch_driver Module Reference

module ATMOSPHERE / Physics Chemistry More...

Functions/Subroutines

subroutine, public atmos_phy_ch_driver_setup
 Setup. More...
 
subroutine, public atmos_phy_ch_driver_resume
 Resume. More...
 
subroutine, public atmos_phy_ch_driver (update_flag)
 Driver. More...
 

Detailed Description

module ATMOSPHERE / Physics Chemistry

Description
Atmospheric chemistry driver
Author
Team SCALE
History
  • 2014-05-04 (H.Yashiro) [new]
NAMELIST
  • No namelist group
History Output
namedescriptionunitvariable
Ozone Ozone PPM O3

Function/Subroutine Documentation

◆ atmos_phy_ch_driver_setup()

subroutine, public mod_atmos_phy_ch_driver::atmos_phy_ch_driver_setup ( )

Setup.

Definition at line 52 of file mod_atmos_phy_ch_driver.f90.

References mod_atmos_admin::atmos_phy_ch_type, mod_atmos_admin::atmos_sw_phy_ch, scale_stdio::io_fid_log, and scale_stdio::io_l.

Referenced by mod_atmos_driver::atmos_driver_setup().

52 ! use scale_atmos_phy_ch, only: &
53 ! ATMOS_PHY_CH_setup
54  use mod_atmos_admin, only: &
57  implicit none
58  !---------------------------------------------------------------------------
59 
60  if( io_l ) write(io_fid_log,*)
61  if( io_l ) write(io_fid_log,*) '++++++ Module[DRIVER] / Categ[ATMOS PHY_CH] / Origin[SCALE-RM]'
62 
63  if ( atmos_sw_phy_ch ) then
64 
65  ! setup library component
66  !call ATMOS_PHY_CH_setup( ATMOS_PHY_CH_TYPE )
67 
68  else
69  if( io_l ) write(io_fid_log,*) '*** this component is never called.'
70  endif
71 
72  return
module ATMOS admin
character(len=h_short), public atmos_phy_ch_type
logical, public atmos_sw_phy_ch
Here is the caller graph for this function:

◆ atmos_phy_ch_driver_resume()

subroutine, public mod_atmos_phy_ch_driver::atmos_phy_ch_driver_resume ( )

Resume.

Definition at line 78 of file mod_atmos_phy_ch_driver.f90.

References atmos_phy_ch_driver(), mod_atmos_admin::atmos_sw_phy_ch, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().

Referenced by mod_atmos_driver::atmos_driver_resume1().

78  use mod_atmos_admin, only: &
80  implicit none
81 
82  if ( atmos_sw_phy_ch ) then
83 
84  ! run once (only for the diagnostic value)
85  call prof_rapstart('ATM_Chemistry', 1)
86  call atmos_phy_ch_driver( update_flag = .true. )
87  call prof_rapend ('ATM_Chemistry', 1)
88 
89  end if
90 
91  return
module ATMOS admin
subroutine, public atmos_phy_ch_driver(update_flag)
Driver.
logical, public atmos_sw_phy_ch
Here is the call graph for this function:
Here is the caller graph for this function:

◆ atmos_phy_ch_driver()

subroutine, public mod_atmos_phy_ch_driver::atmos_phy_ch_driver ( logical, intent(in)  update_flag)

Driver.

Definition at line 97 of file mod_atmos_phy_ch_driver.f90.

References mod_atmos_phy_ch_vars::atmos_phy_ch_o3, mod_atmos_phy_ch_vars::atmos_phy_ch_rhoq_t, scale_grid_index::ie, scale_grid_index::is, scale_grid_index::je, scale_grid_index::js, scale_grid_index::ke, scale_grid_index::ks, scale_tracer::qa, mod_atmos_vars::rhoq_tp, scale_rm_statistics::statistics_checktotal, and scale_tracer::tracer_name.

Referenced by mod_atmos_driver::atmos_driver(), and atmos_phy_ch_driver_resume().

97 ! use scale_time, only: &
98 ! dt_CH => TIME_DTSEC_ATMOS_PHY_CH
99  use scale_rm_statistics, only: &
101  stat_total
102  use scale_history, only: &
103  hist_in
104 ! use scale_atmos_phy_ch, only: &
105 ! ATMOS_PHY_CH
106  use mod_atmos_vars, only: &
107 ! DENS => DENS_av, &
108 ! MOMZ => MOMZ_av, &
109 ! MOMX => MOMX_av, &
110 ! MOMY => MOMY_av, &
111 ! RHOT => RHOT_av, &
112 ! QTRC => QTRC_av, &
113  rhoq_t => rhoq_tp
114  use mod_atmos_phy_ch_vars, only: &
115  rhoq_t_ch => atmos_phy_ch_rhoq_t, &
116  o3 => atmos_phy_ch_o3
117  implicit none
118 
119  logical, intent(in) :: update_flag
120 
121  real(RP) :: total ! dummy
122 
123  integer :: k, i, j, iq
124  !---------------------------------------------------------------------------
125 
126  if ( update_flag ) then
127 
128 ! call ATMOS_PHY_CH( DENS, & ! [IN]
129 ! MOMZ, & ! [IN]
130 ! MOMX, & ! [IN]
131 ! MOMY, & ! [IN]
132 ! RHOT, & ! [IN]
133 ! QTRC, & ! [IN]
134 ! RHOQ_t_CH, & ! [INOUT]
135 ! O3 ) ! [INOUT]
136 
137  ! tentative!
138 !OCL XFILL
139  rhoq_t_ch(:,:,:,:) = 0.0_rp
140 !OCL XFILL
141  o3(:,:,:) = 0.0_rp
142 
143  call hist_in( o3(:,:,:), 'Ozone', 'Ozone', 'PPM' )
144  endif
145 
146  !$omp parallel do private(i,j,k) OMP_SCHEDULE_ collapse(3)
147  do iq = 1, qa
148  do j = js, je
149  do i = is, ie
150  do k = ks, ke
151  rhoq_t(k,i,j,iq) = rhoq_t(k,i,j,iq) + rhoq_t_ch(k,i,j,iq)
152  enddo
153  enddo
154  enddo
155  enddo
156 
157  if ( statistics_checktotal ) then
158  do iq = 1, qa
159  call stat_total( total, rhoq_t_ch(:,:,:,iq), trim(tracer_name(iq))//'_t_CH' )
160  enddo
161  endif
162 
163  return
logical, public statistics_checktotal
calc&report variable totals to logfile?
module ATMOSPHERIC Variables
real(rp), dimension(:,:,:), allocatable, public atmos_phy_ch_o3
module Statistics
real(rp), dimension(:,:,:,:), allocatable, public rhoq_tp
real(rp), dimension(:,:,:,:), allocatable, public atmos_phy_ch_rhoq_t
module Atmosphere / Physics Chemistry
module HISTORY
Here is the caller graph for this function: