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_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 54 of file mod_user.F90.

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

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

subroutine, public mod_user::user_mkinit

Make initial state.

Definition at line 116 of file mod_user.F90.

116  implicit none
117  !---------------------------------------------------------------------------
118 
119  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 125 of file mod_user.F90.

125  implicit none
126  !---------------------------------------------------------------------------
127 
128  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 134 of file mod_user.F90.

134  use scale_prc, only: &
135  prc_abort
136  implicit none
137  !---------------------------------------------------------------------------
138 
139  if ( user_do ) then
140  call prc_abort
141  endif
142 
143  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:342
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:65
scale_tracer
module TRACER
Definition: scale_tracer.F90:12