SCALE-RM
Functions/Subroutines | Variables
scale_io Module Reference

module STDIO More...

Functions/Subroutines

subroutine, public io_setup (APPNAME, conf_name, allow_noconf)
 Setup. More...
 
subroutine, public io_log_setup (myrank, is_master)
 Setup LOG. More...
 
integer function, public io_get_available_fid ()
 search & get available file ID More...
 
subroutine, public io_make_idstr (outstr, instr, ext, rank, isrgn)
 generate process specific filename More...
 
character(len=h_long) function, public io_arg_getfname (is_master, allow_noconf)
 get config filename from argument More...
 
integer function, public io_cnf_open (fname, is_master)
 open config file More...
 

Variables

integer, parameter, public h_short = File_HSHORT
 Character length (short=16) More...
 
integer, parameter, public h_mid = File_HMID
 Character length (short=64) More...
 
integer, parameter, public h_long = File_HLONG
 Character length (short=256) More...
 
character(len=h_mid), public h_appname
 name of the application More...
 
character(len=h_mid), public h_libname
 name and version of the library More...
 
character(len=h_mid), public h_source
 for file header More...
 
character(len=h_mid), public h_institute = 'RIKEN'
 for file header More...
 
character(len=9), parameter, public io_nullfile = "/dev/null"
 
character(len=6), parameter, public io_stdout = "STDOUT"
 
integer, parameter, public io_fid_stdout = 6
 
integer, public io_fid_conf = -1
 Config file ID. More...
 
integer, public io_fid_log = -1
 Log file ID. More...
 
integer, public io_fid_nml = -1
 Log file ID (only for output namelist) More...
 
character(len=h_long), public io_log_basename = 'LOG'
 basename of logfile More...
 
character(len=h_long), public io_nml_filename = ''
 filename of logfile (only for output namelist) More...
 
logical, public io_l = .false.
 output log or not? (this process) More...
 
logical, public io_nml = .false.
 output log or not? (for namelist, this process) More...
 
logical, public io_log_suppress = .false.
 suppress all of log output? More...
 
logical, public io_log_nml_suppress = .false.
 suppress all of log output? (for namelist) More...
 
logical, public io_log_allnode = .false.
 output log for each node? More...
 
integer, public io_step_to_stdout = -1
 interval for output current step to STDOUT (negative is off) More...
 

Detailed Description

module STDIO

Description
Standard, common I/O module
Author
Team SCALE
NAMELIST
  • PARAM_IO
    nametypedefault valuecomment
    H_SOURCE character(len=H_MID) for file header
    H_INSTITUTE character(len=H_MID) 'RIKEN' for file header
    IO_LOG_BASENAME character(len=H_LONG) 'LOG' basename of logfile
    IO_NML_FILENAME character(len=H_LONG) '' filename of logfile (only for output namelist)
    IO_LOG_SUPPRESS logical .false. suppress all of log output?
    IO_LOG_NML_SUPPRESS logical .false. suppress all of log output? (for namelist)
    IO_LOG_ALLNODE logical .false. output log for each node?

History Output
No history output

Function/Subroutine Documentation

◆ io_setup()

subroutine, public scale_io::io_setup ( character(len=*), intent(in)  APPNAME,
character(len=*), intent(in), optional  conf_name,
logical, intent(in), optional  allow_noconf 
)

Setup.

Parameters
[in]appnamename of the application
[in]conf_namename of config file for each process
[in]allow_noconfif true, allow program to run without configure file

Definition at line 87 of file scale_io.F90.

References h_appname, h_institute, h_libname, h_source, io_arg_getfname(), io_cnf_open(), io_fid_conf, io_log_allnode, io_log_basename, io_log_nml_suppress, io_log_suppress, io_nml_filename, io_stdout, and io_step_to_stdout.

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

87 
88  implicit none
89 
90  namelist / param_io / &
91  h_source, &
92  h_institute, &
99 
100  character(len=*), intent(in) :: appname
101  character(len=*), intent(in), optional :: conf_name
102  logical, intent(in), optional :: allow_noconf
103 
104  character(len=H_LONG) :: fname
105 
106  integer :: ierr
107  !---------------------------------------------------------------------------
108 
109  if ( present(conf_name) ) then
110  fname = conf_name
111  else
112  fname = io_arg_getfname( is_master=.true., allow_noconf=allow_noconf )
114  endif
115 
116  !--- Open config file till end
117  io_fid_conf = io_cnf_open( fname, & ! [IN]
118  is_master=.true. ) ! [IN]
119 
120  h_appname = trim(appname)
121  h_libname = 'SCALE Library ver. '//trim(libversion)
122  h_source = trim(appname)
123 
124  !--- read PARAM
125  if ( io_fid_conf > 0 ) then
126  rewind(io_fid_conf)
127  read(io_fid_conf,nml=param_io,iostat=ierr)
128  if ( ierr > 0 ) then !--- fatal error
129  log_error('IO_setup',*) 'Not appropriate names in namelist PARAM_IO . Check!'
130  stop
131  endif
132  end if
133 
134  return
logical, public io_log_nml_suppress
suppress all of log output? (for namelist)
Definition: scale_io.F90:64
logical, public io_log_suppress
suppress all of log output?
Definition: scale_io.F90:63
integer function, public io_cnf_open(fname, is_master)
open config file
Definition: scale_io.F90:392
integer, public io_fid_conf
Config file ID.
Definition: scale_io.F90:55
character(len=h_long), public io_log_basename
basename of logfile
Definition: scale_io.F90:59
logical, public io_log_allnode
output log for each node?
Definition: scale_io.F90:65
character(len=h_mid), public h_source
for file header
Definition: scale_io.F90:49
character(len=h_mid), public h_institute
for file header
Definition: scale_io.F90:50
character(len=h_mid), public h_libname
name and version of the library
Definition: scale_io.F90:48
integer, public io_step_to_stdout
interval for output current step to STDOUT (negative is off)
Definition: scale_io.F90:66
character(len=6), parameter, public io_stdout
Definition: scale_io.F90:53
character(len=h_long) function, public io_arg_getfname(is_master, allow_noconf)
get config filename from argument
Definition: scale_io.F90:360
character(len=h_mid), public h_appname
name of the application
Definition: scale_io.F90:47
character(len=h_long), public io_nml_filename
filename of logfile (only for output namelist)
Definition: scale_io.F90:60
Here is the call graph for this function:
Here is the caller graph for this function:

◆ io_log_setup()

subroutine, public scale_io::io_log_setup ( integer, intent(in)  myrank,
logical, intent(in)  is_master 
)

Setup LOG.

Parameters
[in]myrankmy rank ID
[in]is_mastermaster process?

Definition at line 142 of file scale_io.F90.

References h_appname, h_institute, h_libname, h_source, io_fid_conf, io_fid_log, io_fid_nml, io_fid_stdout, io_get_available_fid(), io_l, io_log_allnode, io_log_basename, io_log_nml_suppress, io_log_suppress, io_make_idstr(), io_nml, io_nml_filename, and io_stdout.

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

142  implicit none
143 
144  integer, intent(in) :: myrank
145  logical, intent(in) :: is_master
146 
147  namelist / param_io / &
148  h_source, &
149  h_institute, &
150  io_log_basename, &
151  io_nml_filename, &
152  io_log_suppress, &
155 
156  character(len=H_LONG) :: fname
157 
158  integer :: ierr
159  !---------------------------------------------------------------------------
160 
161  if ( io_log_suppress ) then
162  io_l = .false.
163  else
164  if ( is_master ) then ! master node
165  io_l = .true.
166  else
168  endif
169  endif
170 
171  if ( io_log_nml_suppress ) then
172  io_nml = .false.
173  else
174  io_nml = io_l
175  endif
176 
177  if ( io_l ) then
178 
179  !--- Open logfile
180  if ( io_log_basename == io_stdout ) then
182  else
184  call io_make_idstr(fname,trim(io_log_basename),'pe',myrank)
185  open( unit = io_fid_log, &
186  file = trim(fname), &
187  form = 'formatted', &
188  iostat = ierr )
189  if ( ierr /= 0 ) then
190  log_error('IO_LOG_setup',*) 'File open error! :', trim(fname)
191  stop
192  endif
193  endif
194 
195  if ( io_fid_log .ne. io_fid_stdout ) then
196  write(io_fid_log,*) ''
197  write(io_fid_log,*) ' -+++++++++; '
198  write(io_fid_log,*) ' ++++++++++++++= '
199  write(io_fid_log,*) ' ++++++++++++++++++- '
200  write(io_fid_log,*) ' +++++++++++++++++++++ '
201  write(io_fid_log,*) ' .+++++++++++++++++++++++ '
202  write(io_fid_log,*) ' +++++++++++++++++++++++++ '
203  write(io_fid_log,*) ' +++++++++++++++++++++++++++ '
204  write(io_fid_log,*) ' =++++++=x######+++++++++++++; '
205  write(io_fid_log,*) ' .++++++X####XX####++++++++++++ '
206  write(io_fid_log,*) ' =+xxx=, ++++ +++++=##+ .###++++++++++- '
207  write(io_fid_log,*) ' ,xxxxxxxxxx- +++++.+++++=## .##++++++++++ '
208  write(io_fid_log,*) ' xxxxxxxxxxxxx -+++x#;+++++#+ ##+++++++++. '
209  write(io_fid_log,*) ' xxxxxxxx##xxxx, ++++# +++++XX #+++++++++- '
210  write(io_fid_log,*) ' xxxxxxx####+xx+x ++++#.++++++# #+++++++++ '
211  write(io_fid_log,*) ' +xxxxxX#X #Xx#= =+++#x=++++=#. x=++++++++ '
212  write(io_fid_log,*) ' xxxxxx#, x### .++++#,+++++#= x++++++++ '
213  write(io_fid_log,*) ' xxxxxx#. ++++# +++++x# #++++++++ '
214  write(io_fid_log,*) ' xxxxxx+ ++++#-+++++=# #++++++++ '
215  write(io_fid_log,*) ',xxxxxX -+++XX-+++++#, +++++++++ '
216  write(io_fid_log,*) '=xxxxxX .++++#.+++++#x -++++++++ '
217  write(io_fid_log,*) '+xxxxx= ++++#.++++++# ++++++++# '
218  write(io_fid_log,*) 'xxxxxx; ++++#+=++++=# ++++++++# '
219  write(io_fid_log,*) 'xxxxxxx ,+++x#,+++++#- ;++++++++- '
220  write(io_fid_log,*) '#xxxxxx +++=# +++++xX ++++++++# '
221  write(io_fid_log,*) 'xxxxxxxx ++++#-+++++=# +++++++++X '
222  write(io_fid_log,*) '-+xxxxxx+ ++++X#-++++=#. -++; =++++++++# '
223  write(io_fid_log,*) ' #xxxxxxxx. .+++++# +++++#x =++++- +++++++++XX '
224  write(io_fid_log,*) ' #xxxxxxxxxx=--=++++++#.++++++# ++++++ -+++++++++x# '
225  write(io_fid_log,*) ' #+xxxxxxxxxx+++++++#x=++++=# ++++++;=+++++++++++x# '
226  write(io_fid_log,*) ' =#+xxxxxxxx+++++++##,+++++#= =++++++++++++++++++##. '
227  write(io_fid_log,*) ' X#xxxxxxxx++++++## +++++x# ;x++++++++++++++++##. '
228  write(io_fid_log,*) ' x##+xxxx+++++x## +++++=# ##++++++++++++x##X '
229  write(io_fid_log,*) ' ,###Xx+++x###x -++++=#, .####x+++++X####. '
230  write(io_fid_log,*) ' -########+ -#####x .X#########+. '
231  write(io_fid_log,*) ' .,. ...... .,. '
232  write(io_fid_log,*) ' '
233  write(io_fid_log,*) ' .X####### +###- =###+ ###x x######## '
234  write(io_fid_log,*) ' .######### ######X ####### #### .#########x '
235  write(io_fid_log,*) ' ####+++++= X#######. -#######x .###; ####x+++++. '
236  write(io_fid_log,*) ' ### ###= #### #### x### #### -###. '
237  write(io_fid_log,*) ' .### #### ###+ X### ###X =###. #### '
238  write(io_fid_log,*) ' ###- ;###, .###+ -### #### x##########+ '
239  write(io_fid_log,*) ' +####x #### #### #### #### ###########. '
240  write(io_fid_log,*) ' x######. =### ###, .###- ###+ x###-------- '
241  write(io_fid_log,*) ' =##### X### -### #### ,### #### '
242  write(io_fid_log,*) ' .###=x###; .###+ ###X ###X ####. '
243  write(io_fid_log,*) ' ###########; ###########+ ########### ########### ,##########. '
244  write(io_fid_log,*) '-########### ,##########, #########X ########## +######### '
245  write(io_fid_log,*) ',,,,,,,,,,. ,,,,,,,,, .,,,,,,,. .,,,,,,,, ,,,,,,,, '
246  write(io_fid_log,*) ' '
247  write(io_fid_log,*) ' SCALE : Scalable Computing by Advanced Library and Environment '
248  write(io_fid_log,*) ''
249  write(io_fid_log,*) trim(h_libname)
250  write(io_fid_log,*) trim(h_appname)
251 
252 
253  log_newline
254  log_info("IO_LOG_setup",*) 'Setup'
255 
256  log_info('IO_LOG_setup','(1x,A,I3)') 'Open config file, FID = ', io_fid_conf
257  log_info('IO_LOG_setup','(1x,A,I3)') 'Open log file, FID = ', io_fid_log
258  log_info('IO_LOG_setup','(1x,2A)') 'basename of log file = ', trim(io_log_basename)
259  log_newline
260  end if
261 
262  else
263  if( is_master ) write(*,*) '*** Log report is suppressed.'
264  endif
265 
266  if ( io_nml_filename /= '' ) then
267  log_info("IO_LOG_setup",*) 'The used configurations are output to the file.'
268  log_info("IO_LOG_setup",*) 'filename of used config file = ', trim(io_nml_filename)
269 
270  if ( is_master ) then ! write from master node only
271  io_nml = .true. ! force on
273  open( unit = io_fid_nml, &
274  file = trim(io_nml_filename), &
275  form = 'formatted', &
276  iostat = ierr )
277  if ( ierr /= 0 ) then
278  log_error('IO_LOG_setup',*) 'File open error! :', trim(io_nml_filename)
279  stop 1
280  endif
281 
282  log_info("IO_LOG_setup",'(1x,A,I3)') 'Open file to output used config, FID = ', io_fid_nml
283 
284  write(io_fid_nml,'(A)') '################################################################################'
285  write(io_fid_nml,'(A)') '#! configulation'
286  write(io_fid_nml,'(2A)') '#! ', trim(h_libname)
287  write(io_fid_nml,'(2A)') '#! ', trim(h_appname)
288  write(io_fid_nml,'(A)') '################################################################################'
289  log_nml(param_io)
290  else
291  io_nml = .false. ! force off
292  io_fid_nml = -1
293 
294  log_info("IO_LOG_setup",*) 'The file for used config is open by the master rank'
295  endif
296  else
297  if ( io_nml ) then
299 
300  log_info("IO_LOG_setup",*) 'The used config is output to the log.'
301  else
302  log_info("IO_LOG_setup",*) 'The used config is not output.'
303  endif
304  endif
305 
306  return
logical, public io_log_nml_suppress
suppress all of log output? (for namelist)
Definition: scale_io.F90:64
logical, public io_log_suppress
suppress all of log output?
Definition: scale_io.F90:63
integer, public io_fid_nml
Log file ID (only for output namelist)
Definition: scale_io.F90:57
integer, public io_fid_conf
Config file ID.
Definition: scale_io.F90:55
character(len=h_long), public io_log_basename
basename of logfile
Definition: scale_io.F90:59
logical, public io_l
output log or not? (this process)
Definition: scale_io.F90:61
integer, parameter, public io_fid_stdout
Definition: scale_io.F90:54
logical, public io_log_allnode
output log for each node?
Definition: scale_io.F90:65
character(len=h_mid), public h_source
for file header
Definition: scale_io.F90:49
integer function, public io_get_available_fid()
search & get available file ID
Definition: scale_io.F90:313
character(len=h_mid), public h_institute
for file header
Definition: scale_io.F90:50
character(len=h_mid), public h_libname
name and version of the library
Definition: scale_io.F90:48
character(len=6), parameter, public io_stdout
Definition: scale_io.F90:53
character(len=h_mid), public h_appname
name of the application
Definition: scale_io.F90:47
character(len=h_long), public io_nml_filename
filename of logfile (only for output namelist)
Definition: scale_io.F90:60
subroutine, public io_make_idstr(outstr, instr, ext, rank, isrgn)
generate process specific filename
Definition: scale_io.F90:334
logical, public io_nml
output log or not? (for namelist, this process)
Definition: scale_io.F90:62
integer, public io_fid_log
Log file ID.
Definition: scale_io.F90:56
Here is the call graph for this function:
Here is the caller graph for this function:

◆ io_get_available_fid()

integer function, public scale_io::io_get_available_fid ( )

search & get available file ID

Returns
fid
file ID

Definition at line 313 of file scale_io.F90.

Referenced by scale_atmos_grid_cartesc_real::atmos_grid_cartesc_real_update_z(), scale_atmos_phy_mp_suzuki10::atmos_phy_mp_suzuki10_setup(), scale_atmos_phy_rd_mstrnx::atmos_phy_rd_mstrnx_flux(), scale_atmos_phy_rd_profile::atmos_phy_rd_profile_setup(), scale_atmos_phy_rd_profile::atmos_phy_rd_profile_setup_zgrid(), scale_atmos_sfc_ch_rn222::atmos_sfc_ch_rn222_setup(), mod_cnv2d::cnv2d(), scale_comm_cartesc_nest::comm_cartesc_nest_setup(), scale_file_tiledata::file_tiledata_read_catalog_file(), scale_file_tiledata::file_tiledata_read_data_int1_int(), scale_file_tiledata::file_tiledata_read_data_int2_int(), scale_file_tiledata::file_tiledata_read_data_int2_real(), scale_file_tiledata::file_tiledata_read_data_int4_int(), scale_file_tiledata::file_tiledata_read_data_int4_real(), scale_file_tiledata::file_tiledata_read_data_real4_int(), scale_file_tiledata::file_tiledata_read_data_real4_real(), scale_file_tiledata::file_tiledata_read_data_real8_real(), io_cnf_open(), io_log_setup(), mod_land_vars::land_vars_total(), scale_monitor::monitor_write(), mod_realinput_grads::parentatmosinputgrads(), mod_realinput_grads::parentatmossetupgrads(), mod_realinput_grads::parentlandinputgrads(), mod_realinput_grads::parentlandsetupgrads(), mod_realinput_grads::parentoceaninputgrads(), mod_realinput_grads::parentoceansetupgrads(), scale_prc_icoa::prc_icoa_setup(), and mod_mkinit::read_sounding().

313  implicit none
314 
315  integer :: fid
316  logical :: i_opened
317  !---------------------------------------------------------------------------
318 
319  do fid = io_minfid, io_maxfid
320  inquire(fid,opened=i_opened)
321  if ( .NOT. i_opened ) return
322  enddo
323 
Here is the caller graph for this function:

◆ io_make_idstr()

subroutine, public scale_io::io_make_idstr ( character(len=h_long), intent(out)  outstr,
character(len=*), intent(in)  instr,
character(len=*), intent(in)  ext,
integer, intent(in)  rank,
logical, intent(in), optional  isrgn 
)

generate process specific filename

Parameters
[out]outstrgenerated string
[in]instrstrings
[in]extextention
[in]ranknumber
[in]isrgnfor region? (8 digits)

Definition at line 334 of file scale_io.F90.

Referenced by io_log_setup(), scale_monitor::monitor_finalize(), and scale_monitor::monitor_write().

334  implicit none
335 
336  character(len=H_LONG), intent(out) :: outstr
337  character(len=*), intent(in) :: instr
338  character(len=*), intent(in) :: ext
339  integer, intent(in) :: rank
340  logical, intent(in), optional :: isrgn
341 
342  character(len=H_SHORT) :: srank
343  !---------------------------------------------------------------------------
344 
345  write(srank,'(I6.6)') rank
346 
347  if ( present(isrgn) ) then
348  if(isrgn) write(srank,'(I8.8)') rank-1
349  endif
350 
351  outstr = trim(instr)//'.'//trim(ext)//trim(srank)
352 
353  return
Here is the caller graph for this function:

◆ io_arg_getfname()

character(len=h_long) function, public scale_io::io_arg_getfname ( logical, intent(in)  is_master,
logical, intent(in), optional  allow_noconf 
)

get config filename from argument

Returns
fname
filename

Definition at line 360 of file scale_io.F90.

References io_nullfile.

Referenced by io_setup(), scalerm(), scalerm_init(), and scalerm_pp().

360  implicit none
361  logical, intent(in) :: is_master
362  logical, intent(in), optional :: allow_noconf
363 
364  character(len=H_LONG) :: fname
365  logical :: allow_noconf_
366  !---------------------------------------------------------------------------
367 
368  if ( command_argument_count() < 1 ) then
369  allow_noconf_ = .false.
370  if ( present(allow_noconf) ) allow_noconf_ = allow_noconf
371  if ( .not. allow_noconf_ ) then
372  if(is_master) then
373  log_error("IO_ARG_getfname",*) 'Program needs config file from argument! STOP.'
374  end if
375  stop
376  else
377  fname = io_nullfile
378  end if
379  else
380  call get_command_argument(1,fname)
381  endif
382 
character(len=9), parameter, public io_nullfile
Definition: scale_io.F90:52
Here is the caller graph for this function:

◆ io_cnf_open()

integer function, public scale_io::io_cnf_open ( character(len=*), intent(in)  fname,
logical, intent(in)  is_master 
)

open config file

Returns
fid
Parameters
[in]fnamefilename
[in]is_mastermaster process?
Returns
file ID

Definition at line 392 of file scale_io.F90.

References io_get_available_fid().

Referenced by io_setup(), scalerm(), scalerm_init(), and scalerm_pp().

392  implicit none
393 
394  character(len=*), intent(in) :: fname
395  logical, intent(in) :: is_master
396  integer :: fid
397 
398  integer :: ierr
399  !---------------------------------------------------------------------------
400 
401  fid = io_get_available_fid()
402 
403  open( unit = fid, &
404  file = trim(fname), &
405  form = 'formatted', &
406  status = 'old', &
407  iostat = ierr )
408 
409  if ( ierr /= 0 ) then
410  if(is_master) then
411  log_error("IO_CNF_open",*) 'Failed to open config file! STOP.'
412  log_error("IO_CNF_open",*) 'filename : ', trim(fname)
413  end if
414  stop 1
415  endif
416 
integer function, public io_get_available_fid()
search & get available file ID
Definition: scale_io.F90:313
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ h_short

integer, parameter, public scale_io::h_short = File_HSHORT

Character length (short=16)

Definition at line 43 of file scale_io.F90.

Referenced by scale_comm_cartesc_nest::comm_cartesc_nest_domain_shape(), and scale_file_history::file_history_reg().

43  integer, public, parameter :: h_short = file_hshort
integer, parameter, public h_short
Character length (short=16)
Definition: scale_io.F90:43

◆ h_mid

integer, parameter, public scale_io::h_mid = File_HMID

Character length (short=64)

Definition at line 44 of file scale_io.F90.

44  integer, public, parameter :: h_mid = file_hmid
integer, parameter, public h_mid
Character length (short=64)
Definition: scale_io.F90:44

◆ h_long

integer, parameter, public scale_io::h_long = File_HLONG

Character length (short=256)

Definition at line 45 of file scale_io.F90.

45  integer, public, parameter :: h_long = file_hlong
integer, parameter, public h_long
Character length (short=256)
Definition: scale_io.F90:45

◆ h_appname

character(len=h_mid), public scale_io::h_appname

name of the application

Definition at line 47 of file scale_io.F90.

Referenced by io_log_setup(), and io_setup().

47  character(len=H_MID), public :: h_appname
character(len=h_mid), public h_appname
name of the application
Definition: scale_io.F90:47

◆ h_libname

character(len=h_mid), public scale_io::h_libname

name and version of the library

Definition at line 48 of file scale_io.F90.

Referenced by io_log_setup(), and io_setup().

48  character(len=H_MID), public :: h_libname
character(len=h_mid), public h_libname
name and version of the library
Definition: scale_io.F90:48

◆ h_source

character(len=h_mid), public scale_io::h_source

for file header

Definition at line 49 of file scale_io.F90.

Referenced by scale_file_cartesc::file_cartesc_create(), scale_file_cartesc::file_cartesc_setup(), scale_file_history_cartesc::file_history_cartesc_setup(), io_log_setup(), and io_setup().

49  character(len=H_MID), public :: h_source
character(len=h_mid), public h_source
for file header
Definition: scale_io.F90:49

◆ h_institute

character(len=h_mid), public scale_io::h_institute = 'RIKEN'

for file header

Definition at line 50 of file scale_io.F90.

Referenced by scale_file_cartesc::file_cartesc_create(), scale_file_cartesc::file_cartesc_setup(), scale_file_history_cartesc::file_history_cartesc_setup(), io_log_setup(), and io_setup().

50  character(len=H_MID), public :: h_institute = 'RIKEN'
character(len=h_mid), public h_institute
for file header
Definition: scale_io.F90:50

◆ io_nullfile

character(len=9), parameter, public scale_io::io_nullfile = "/dev/null"

Definition at line 52 of file scale_io.F90.

Referenced by io_arg_getfname().

52  character(len=9), public, parameter :: io_nullfile = "/dev/null"
character(len=9), parameter, public io_nullfile
Definition: scale_io.F90:52

◆ io_stdout

character(len=6), parameter, public scale_io::io_stdout = "STDOUT"

Definition at line 53 of file scale_io.F90.

Referenced by io_log_setup(), and io_setup().

53  character(len=6), public, parameter :: io_stdout = "STDOUT"
character(len=6), parameter, public io_stdout
Definition: scale_io.F90:53

◆ io_fid_stdout

integer, parameter, public scale_io::io_fid_stdout = 6

Definition at line 54 of file scale_io.F90.

Referenced by io_log_setup(), scale_prc::prc_mpifinish(), scale_prc::prc_mpitimestat(), and scale_prof::prof_rapreport().

54  integer, public, parameter :: io_fid_stdout = 6
integer, parameter, public io_fid_stdout
Definition: scale_io.F90:54

◆ io_fid_conf

integer, public scale_io::io_fid_conf = -1

Config file ID.

Definition at line 55 of file scale_io.F90.

Referenced by mod_admin_restart::admin_restart_setup(), mod_admin_time::admin_time_setup(), mod_admin_versioncheck::admin_versioncheck(), mod_atmos_admin::atmos_admin_setup(), mod_atmos_bnd_driver::atmos_boundary_driver_setup(), mod_atmos_dyn_driver::atmos_dyn_driver_setup(), scale_atmos_dyn_tstep_short_fvm_hivi::atmos_dyn_tstep_short_fvm_hivi_setup(), mod_atmos_dyn_vars::atmos_dyn_vars_setup(), scale_atmos_grid_cartesc_index::atmos_grid_cartesc_index_setup(), scale_atmos_grid_cartesc_metric::atmos_grid_cartesc_metric_setup(), scale_atmos_grid_cartesc_real::atmos_grid_cartesc_real_setup(), scale_atmos_grid_cartesc::atmos_grid_cartesc_setup(), scale_atmos_grid_icoa_index::atmos_grid_icoa_index_setup(), scale_atmos_hydrostatic::atmos_hydrostatic_setup(), scale_atmos_phy_ae_kajino13::atmos_phy_ae_kajino13_setup(), scale_atmos_phy_ae_kajino13::atmos_phy_ae_kajino13_tracer_setup(), mod_atmos_phy_ae_vars::atmos_phy_ae_vars_setup(), scale_atmos_phy_ch_rn222::atmos_phy_ch_rn222_setup(), mod_atmos_phy_ch_vars::atmos_phy_ch_vars_setup(), scale_atmos_phy_cp_common::atmos_phy_cp_common_setup(), scale_atmos_phy_cp_kf::atmos_phy_cp_kf_setup(), mod_atmos_phy_cp_vars::atmos_phy_cp_vars_setup(), mod_atmos_phy_mp_driver::atmos_phy_mp_driver_setup(), scale_atmos_phy_mp_sn14::atmos_phy_mp_sn14_qhyd2qtrc(), scale_atmos_phy_mp_sn14::atmos_phy_mp_sn14_setup(), scale_atmos_phy_mp_suzuki10::atmos_phy_mp_suzuki10_setup(), scale_atmos_phy_mp_suzuki10::atmos_phy_mp_suzuki10_tracer_setup(), scale_atmos_phy_mp_tomita08::atmos_phy_mp_tomita08_setup(), mod_atmos_phy_mp_vars::atmos_phy_mp_vars_setup(), scale_atmos_phy_rd_mstrnx::atmos_phy_rd_mstrnx_setup(), scale_atmos_phy_rd_offline::atmos_phy_rd_offline_setup(), scale_atmos_phy_rd_profile::atmos_phy_rd_profile_setup(), mod_atmos_phy_rd_vars::atmos_phy_rd_vars_setup(), scale_atmos_phy_sf_bulk::atmos_phy_sf_bulk_setup(), scale_atmos_phy_sf_const::atmos_phy_sf_const_setup(), mod_atmos_phy_sf_vars::atmos_phy_sf_vars_setup(), scale_atmos_phy_tb_d1980::atmos_phy_tb_d1980_setup(), scale_atmos_phy_tb_dns::atmos_phy_tb_dns_setup(), scale_atmos_phy_tb_smg::atmos_phy_tb_smg_setup(), mod_atmos_phy_tb_vars::atmos_phy_tb_vars_setup(), scale_atmos_refstate::atmos_refstate_setup(), scale_atmos_saturation::atmos_saturation_setup(), scale_atmos_sfc_ch_rn222::atmos_sfc_ch_rn222_setup(), scale_atmos_solarins::atmos_solarins_setup(), mod_atmos_vars::atmos_vars_setup(), scale_bulkflux::bulkflux_setup(), scale_calendar::calendar_setup(), mod_cnv2d::cnv2d(), mod_cnv2d::cnv2d_setup(), mod_cnvlanduse::cnvlanduse(), mod_cnvlanduse::cnvlanduse_setup(), mod_cnvtopo::cnvtopo(), mod_cnvtopo::cnvtopo_setup(), scale_comm_cartesc_nest::comm_cartesc_nest_setup(), scale_comm_cartesc::comm_setup(), scale_comm_icoa::comm_setup(), scale_const::const_setup(), mod_convert::convert_setup(), mod_copytopo::copytopo(), scale_cpl_phy_sfc_skin::cpl_phy_sfc_skin_setup(), scale_file_cartesc::file_cartesc_setup(), scale_file_external_input::file_external_input_setup(), scale_file_history_cartesc::file_history_cartesc_setup(), scale_file_history::file_history_setup(), scale_file::file_setup(), mod_mkinit::flux_setup(), scale_interp::interp_setup(), io_log_setup(), io_setup(), mod_land_admin::land_admin_setup(), scale_land_dyn_bucket::land_dyn_bucket_setup(), scale_land_grid_cartesc_index::land_grid_cartesc_index_setup(), scale_land_grid_cartesc::land_grid_cartesc_setup(), scale_land_grid_icoa_index::land_grid_icoa_index_setup(), scale_land_grid_icoa::land_grid_icoa_setup(), scale_land_phy_matsiro::land_phy_matsiro_setup(), scale_land_phy_snow_ky90::land_phy_snow_ky90_setup(), mod_mkinit::land_setup(), mod_land_vars::land_vars_setup(), mod_land_vars::land_vars_total(), scale_landuse::landuse_setup(), scale_mapprojection::mapprojection_setup(), scale_atmos_phy_mp_sn14::mixed_phase_collection_kij(), mod_mkinit::mkinit(), mod_mkinit::mkinit_setup(), mod_mktopo::mktopo(), mod_mktopo::mktopo_setup(), scale_monitor::monitor_setup(), scale_atmos_phy_mp_sn14::nucleation_kij(), mod_ocean_admin::ocean_admin_setup(), scale_ocean_dyn_offline::ocean_dyn_offline_setup(), scale_ocean_dyn_slab::ocean_dyn_slab_setup(), scale_ocean_grid_cartesc_index::ocean_grid_cartesc_index_setup(), scale_ocean_grid_cartesc::ocean_grid_cartesc_setup(), scale_ocean_grid_icoa_index::ocean_grid_icoa_index_setup(), scale_ocean_grid_icoa::ocean_grid_icoa_setup(), scale_ocean_phy_albedo::ocean_phy_albedo_const_setup(), scale_ocean_phy_albedo::ocean_phy_albedo_seaice_setup(), scale_ocean_phy_ice_simple::ocean_phy_ice_setup(), scale_ocean_phy_roughness::ocean_phy_roughness_const_setup(), scale_ocean_phy_roughness_miller92::ocean_phy_roughness_miller92_setup(), scale_ocean_phy_roughness_moon07::ocean_phy_roughness_moon07_setup(), scale_ocean_phy_roughness::ocean_phy_roughness_seaice_setup(), scale_ocean_phy_roughness::ocean_phy_roughness_setup(), scale_ocean_phy_tc::ocean_phy_tc_seaice_setup(), mod_mkinit::ocean_setup(), mod_ocean_vars::ocean_vars_setup(), mod_realinput_grads::parentatmossetupgrads(), mod_realinput_wrfarw::parentatmossetupwrfarw(), mod_realinput_wrfarw::parentlandsetupwrfarw(), mod_realinput_wrfarw::parentoceansetupwrfarw(), scale_prc_cartesc::prc_cartesc_setup(), scale_prc_icoa::prc_icoa_setup(), scale_prc::prc_mpifinish(), scale_prc::prc_mpitimestat(), scale_prof::prof_setup(), scale_random::random_setup(), mod_mkinit::read_sounding(), mod_realinput::realinput_atmos(), mod_realinput::realinput_surface(), mod_mkinit::rect_setup(), scale_statistics::statistics_setup(), mod_mkinit::tke_setup(), scale_topography::topo_setup(), scale_atmos_phy_mp_sn14::update_by_phase_change_kij(), mod_urban_admin::urban_admin_setup(), scale_urban_dyn_kusaka01::urban_dyn_kusaka01_setup(), scale_urban_grid_cartesc_index::urban_grid_cartesc_index_setup(), scale_urban_grid_cartesc::urban_grid_cartesc_setup(), scale_urban_grid_icoa_index::urban_grid_icoa_index_setup(), scale_urban_grid_icoa::urban_grid_icoa_setup(), mod_mkinit::urban_setup(), mod_urban_vars::urban_vars_setup(), and mod_user::user_setup().

55  integer, public :: io_fid_conf = -1
integer, public io_fid_conf
Config file ID.
Definition: scale_io.F90:55

◆ io_fid_log

integer, public scale_io::io_fid_log = -1

◆ io_fid_nml

integer, public scale_io::io_fid_nml = -1

Log file ID (only for output namelist)

Definition at line 57 of file scale_io.F90.

Referenced by io_log_setup(), scale_monitor::monitor_setup(), scale_prc_cartesc::prc_cartesc_setup(), and scale_prc_icoa::prc_icoa_setup().

57  integer, public :: io_fid_nml = -1
integer, public io_fid_nml
Log file ID (only for output namelist)
Definition: scale_io.F90:57

◆ io_log_basename

character(len=h_long), public scale_io::io_log_basename = 'LOG'

basename of logfile

Definition at line 59 of file scale_io.F90.

Referenced by io_log_setup(), and io_setup().

59  character(len=H_LONG), public :: io_log_basename = 'LOG'
character(len=h_long), public io_log_basename
basename of logfile
Definition: scale_io.F90:59

◆ io_nml_filename

character(len=h_long), public scale_io::io_nml_filename = ''

filename of logfile (only for output namelist)

Definition at line 60 of file scale_io.F90.

Referenced by io_log_setup(), and io_setup().

60  character(len=H_LONG), public :: io_nml_filename = ''
character(len=h_long), public io_nml_filename
filename of logfile (only for output namelist)
Definition: scale_io.F90:60

◆ io_l

logical, public scale_io::io_l = .false.

output log or not? (this process)

Definition at line 61 of file scale_io.F90.

Referenced by scale_comm_icoa::comm_setup(), io_log_setup(), scale_prc_cartesc::prc_cartesc_setup(), scale_prc_icoa::prc_icoa_setup(), scale_prc::prc_mpifinish(), scale_prc::prc_mpitimestat(), scale_prof::prof_rapreport(), mod_rm_driver::rm_driver(), and scale_comm_icoa::suf().

61  logical, public :: io_l = .false.
logical, public io_l
output log or not? (this process)
Definition: scale_io.F90:61

◆ io_nml

logical, public scale_io::io_nml = .false.

output log or not? (for namelist, this process)

Definition at line 62 of file scale_io.F90.

Referenced by scale_comm_icoa::comm_setup(), io_log_setup(), scale_prc_cartesc::prc_cartesc_setup(), and scale_prc_icoa::prc_icoa_setup().

62  logical, public :: io_nml = .false.
logical, public io_nml
output log or not? (for namelist, this process)
Definition: scale_io.F90:62

◆ io_log_suppress

logical, public scale_io::io_log_suppress = .false.

suppress all of log output?

Definition at line 63 of file scale_io.F90.

Referenced by io_log_setup(), io_setup(), and scale_prof::prof_rapreport().

63  logical, public :: io_log_suppress = .false.
logical, public io_log_suppress
suppress all of log output?
Definition: scale_io.F90:63

◆ io_log_nml_suppress

logical, public scale_io::io_log_nml_suppress = .false.

suppress all of log output? (for namelist)

Definition at line 64 of file scale_io.F90.

Referenced by io_log_setup(), and io_setup().

64  logical, public :: io_log_nml_suppress = .false.
logical, public io_log_nml_suppress
suppress all of log output? (for namelist)
Definition: scale_io.F90:64

◆ io_log_allnode

logical, public scale_io::io_log_allnode = .false.

output log for each node?

Definition at line 65 of file scale_io.F90.

Referenced by io_log_setup(), io_setup(), scale_monitor::monitor_write(), and scale_prof::prof_rapreport().

65  logical, public :: io_log_allnode = .false.
logical, public io_log_allnode
output log for each node?
Definition: scale_io.F90:65

◆ io_step_to_stdout

integer, public scale_io::io_step_to_stdout = -1

interval for output current step to STDOUT (negative is off)

Definition at line 66 of file scale_io.F90.

Referenced by mod_admin_time::admin_time_checkstate(), and io_setup().

66  integer, public :: io_step_to_stdout = -1
integer, public io_step_to_stdout
interval for output current step to STDOUT (negative is off)
Definition: scale_io.F90:66