SCALE-RM
Functions/Subroutines
mod_user Module Reference

module USER More...

Functions/Subroutines

subroutine, public user_tracer_setup
 Config before setup of tracers. More...
 
subroutine, public user_setup
 Setup before setup of other components. More...
 
subroutine, public user_finalize
 Finalization. More...
 
subroutine, public user_mkinit
 Make initial state. More...
 
subroutine, public user_calc_tendency
 Calculation tendency. More...
 
subroutine, public user_update
 User step. More...
 

Detailed Description

module USER

Description
User defined module
Author
Team SCALE
NAMELIST
  • PARAM_USER
    nametypedefault valuecomment
    USER_DO logical .false. do user step?

History Output
No history output

Function/Subroutine Documentation

◆ user_tracer_setup()

subroutine, public mod_user::user_tracer_setup

Config before setup of tracers.

Definition at line 55 of file mod_user.F90.

55  use scale_tracer, only: &
57  implicit none
58 
59  ! if you want to add tracers, call the TRACER_regist subroutine.
60  ! e.g.,
61 ! integer, parameter :: NQ = 1
62 ! integer :: QS
63 ! character(len=H_SHORT) :: NAME(NQ)
64 ! character(len=H_MID) :: DESC(NQ)
65 ! character(len=H_SHORT) :: UNIT(NQ)
66 !
67 ! data NAME (/ 'name' /)
68 ! data DESC (/ 'tracer name' /)
69 ! data UNIT (/ 'kg/kg' /)
70  !---------------------------------------------------------------------------
71 
72 ! call TRACER_regist( QS, & ! [OUT]
73 ! NQ, & ! [IN]
74 ! NAME, & ! [IN]
75 ! DESC, & ! [IN]
76 ! UNIT ) ! [IN]
77 
78  return

References scale_tracer::tracer_regist().

Referenced by 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:

◆ user_setup()

subroutine, public mod_user::user_setup

Setup before setup of other components.

Definition at line 84 of file mod_user.F90.

84  use scale_prc, only: &
85  prc_abort
86  implicit none
87 
88  namelist / param_user / &
89  user_do
90 
91  integer :: ierr
92  !---------------------------------------------------------------------------
93 
94  log_newline
95  log_info("USER_setup",*) 'Setup'
96 
97  !--- read namelist
98  rewind(io_fid_conf)
99  read(io_fid_conf,nml=param_user,iostat=ierr)
100  if( ierr < 0 ) then !--- missing
101  log_info("USER_setup",*) 'Not found namelist. Default used.'
102  elseif( ierr > 0 ) then !--- fatal error
103  log_error("USER_setup",*) 'Not appropriate names in namelist PARAM_USER. Check!'
104  call prc_abort
105  endif
106  log_nml(param_user)
107 
108  log_newline
109  log_info("USER_setup",*) 'This module is dummy.'
110 
111  return

References scale_io::io_fid_conf, and scale_prc::prc_abort().

Referenced by 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:

◆ user_finalize()

subroutine, public mod_user::user_finalize

Finalization.

Definition at line 117 of file mod_user.F90.

117  implicit none
118  !---------------------------------------------------------------------------
119 
120  return

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

Here is the caller graph for this function:

◆ user_mkinit()

subroutine, public mod_user::user_mkinit

Make initial state.

Definition at line 126 of file mod_user.F90.

126  implicit none
127  !---------------------------------------------------------------------------
128 
129  return

Referenced by mod_rm_prep::rm_prep().

Here is the caller graph for this function:

◆ user_calc_tendency()

subroutine, public mod_user::user_calc_tendency

Calculation tendency.

Definition at line 135 of file mod_user.F90.

135  implicit none
136  !---------------------------------------------------------------------------
137 
138  return

Referenced by mod_rm_driver::restart_read(), and mod_rm_driver::rm_driver().

Here is the caller graph for this function:

◆ user_update()

subroutine, public mod_user::user_update

User step.

Definition at line 144 of file mod_user.F90.

144  use scale_prc, only: &
145  prc_abort
146  implicit none
147  !---------------------------------------------------------------------------
148 
149  if ( user_do ) then
150  call prc_abort
151  endif
152 
153  return

References scale_prc::prc_abort().

Referenced by mod_rm_driver::rm_driver().

Here is the call graph for this function:
Here is the caller graph for this function:
scale_prc::prc_abort
subroutine, public prc_abort
Abort Process.
Definition: scale_prc.F90:350
scale_prc
module PROCESS
Definition: scale_prc.F90:11
scale_tracer::tracer_regist
subroutine, public tracer_regist(QS, NQ, NAME, DESC, UNIT, CV, CP, R, ENGI0, ADVC, MASS)
Regist tracer.
Definition: scale_tracer.F90:68
scale_tracer
module TRACER
Definition: scale_tracer.F90:12