SCALE-RM
scale_atmos_dyn_tinteg_tracer_euler.F90
Go to the documentation of this file.
1 !-------------------------------------------------------------------------------
14 !-------------------------------------------------------------------------------
15 #include "inc_openmp.h"
17  !-----------------------------------------------------------------------------
18  !
19  !++ used modules
20  !
21  use scale_precision
22  use scale_stdio
23  use scale_prof
25  use scale_index
26  use scale_tracer
27 
28 #ifdef DEBUG
29  use scale_debug, only: &
30  check
31  use scale_const, only: &
32  undef => const_undef, &
33  iundef => const_undef2
34 #endif
35  !-----------------------------------------------------------------------------
36  implicit none
37  private
38  !-----------------------------------------------------------------------------
39  !
40  !++ Public procedure
41  !
44 
45  !-----------------------------------------------------------------------------
46  !
47  !++ Public parameters & variables
48  !
49  !-----------------------------------------------------------------------------
50  !
51  !++ Private procedure
52  !
53  !-----------------------------------------------------------------------------
54  !
55  !++ Private parameters & variables
56  !
57  !-----------------------------------------------------------------------------
58 contains
59 
60  !-----------------------------------------------------------------------------
63  tinteg_type )
64  use scale_process, only: &
66  use scale_const, only: &
67  undef => const_undef
68  use scale_comm, only: &
70  implicit none
71 
72  character(len=*) :: tinteg_type
73 
74  integer :: iv
75  !---------------------------------------------------------------------------
76 
77  if ( tinteg_type /= 'EULER' ) then
78  write(*,*) 'xxx TINTEG_LARGE_TYPE is not EULER. Check!'
79  call prc_mpistop
80  end if
81 
82  return
84 
85  !-----------------------------------------------------------------------------
87  subroutine atmos_dyn_tinteg_tracer_euler( &
88  QTRC, & ! (out)
89  qtrc0, rhoq_t, &! (in)
90  dens0, dens, & ! (in)
91  mflx_hi, num_diff, & ! (in)
92  gsqrt, mapf, & ! (in)
93  cdz, rcdz, rcdx, rcdy, & ! (in)
94  dtl, & ! (in)
95  flag_fct_tracer, & ! (in)
96  flag_fct_along_stream ) ! (in)
97  use scale_comm, only: &
98  comm_vars8, &
99  comm_wait
100  use scale_atmos_dyn_tstep_tracer, only: &
102  implicit none
103  real(RP), intent(inout) :: QTRC (ka,ia,ja)
104  real(RP), intent(in) :: QTRC0 (ka,ia,ja)
105  real(RP), intent(in) :: RHOQ_t (ka,ia,ja)
106  real(RP), intent(in) :: DENS0 (ka,ia,ja)
107  real(RP), intent(in) :: DENS (ka,ia,ja)
108  real(RP), intent(in) :: mflx_hi (ka,ia,ja,3)
109  real(RP), intent(in) :: num_diff(ka,ia,ja,3)
110  real(RP), intent(in) :: GSQRT (ka,ia,ja,7)
111  real(RP), intent(in) :: MAPF (ia,ja)
112  real(RP), intent(in) :: CDZ(ka)
113  real(RP), intent(in) :: RCDZ(ka)
114  real(RP), intent(in) :: RCDX(ia)
115  real(RP), intent(in) :: RCDY(ja)
116  real(RP), intent(in) :: dtl
117  logical, intent(in) :: FLAG_FCT_TRACER
118  logical, intent(in) :: FLAG_FCT_ALONG_STREAM
119 
120  !------------------------------------------------------------------------
121  ! Start RK
122  !------------------------------------------------------------------------
123 
124  call atmos_dyn_tstep_tracer( &
125  qtrc, & ! (out)
126  qtrc, qtrc0, rhoq_t, &! (in)
127  dens0, dens, & ! (in)
128  mflx_hi, num_diff, & ! (in)
129  gsqrt, mapf, & ! (in)
130  cdz, rcdz, rcdx, rcdy, & ! (in)
131  dtl, & ! (in)
132  flag_fct_tracer, flag_fct_along_stream ) ! (in)
133 
134  return
135  end subroutine atmos_dyn_tinteg_tracer_euler
136 
module DEBUG
Definition: scale_debug.F90:13
subroutine, public prc_mpistop
Abort MPI.
module STDIO
Definition: scale_stdio.F90:12
subroutine, public check(current_line, v)
Undefined value checker.
Definition: scale_debug.F90:58
real(rp), public const_undef
Definition: scale_const.F90:43
subroutine, public atmos_dyn_tinteg_tracer_euler_setup(tinteg_type)
Setup.
module grid index
module TRACER
module Index
Definition: scale_index.F90:14
integer, public ia
of x whole cells (local, with HALO)
subroutine, public comm_vars8_init(var, vid)
Register variables.
Definition: scale_comm.F90:328
integer, public ka
of z whole cells (local, with HALO)
module COMMUNICATION
Definition: scale_comm.F90:23
integer, parameter, public const_undef2
undefined value (INT2)
Definition: scale_const.F90:40
subroutine, public atmos_dyn_tinteg_tracer_euler(QTRC, QTRC0, RHOQ_t, DENS0, DENS, mflx_hi, num_diff, GSQRT, MAPF, CDZ, RCDZ, RCDX, RCDY, dtl, FLAG_FCT_TRACER, FLAG_FCT_ALONG_STREAM)
EULER.
module PROCESS
module CONSTANT
Definition: scale_const.F90:14
module profiler
Definition: scale_prof.F90:10
module PRECISION
procedure(step), pointer, public atmos_dyn_tstep_tracer
module Atmosphere / Dynamical scheme
integer, public ja
of y whole cells (local, with HALO)