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_set_universalrank (myrank, jobid, domainid)
 Put for error log. 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...
 
character(len=6), public io_universalrank = "UNKNWN"
 universal rank for error log More...
 
character(len=6), public io_jobid = "UNKNWN"
 bulk job id for error log More...
 
character(len=6), public io_domainid = "UNKNWN"
 nesting domain id for error log More...
 
character(len=6), public io_localrank = "UNKNWN"
 local rank for error log 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 93 of file scale_io.F90.

93 
94  implicit none
95 
96  namelist / param_io / &
97  h_source, &
98  h_institute, &
99  io_log_basename, &
100  io_nml_filename, &
101  io_log_suppress, &
102  io_log_nml_suppress, &
103  io_log_allnode, &
104  io_step_to_stdout
105 
106  character(len=*), intent(in) :: APPNAME
107  character(len=*), intent(in), optional :: conf_name
108  logical, intent(in), optional :: allow_noconf
109 
110  character(len=H_LONG) :: fname
111 
112  integer :: ierr
113  !---------------------------------------------------------------------------
114 
115  if ( present(conf_name) ) then
116  fname = conf_name
117  else
118  fname = io_arg_getfname( is_master=.true., allow_noconf=allow_noconf )
119  io_log_basename = io_stdout
120  endif
121 
122  !--- Open config file till end
123  io_fid_conf = io_cnf_open( fname, & ! [IN]
124  is_master=.true. ) ! [IN]
125 
126  h_appname = trim(appname)
127  h_libname = 'SCALE Library ver. '//trim(libversion)
128  h_source = trim(appname)
129 
130  !--- read PARAM
131  if ( io_fid_conf > 0 ) then
132  rewind(io_fid_conf)
133  read(io_fid_conf,nml=param_io,iostat=ierr)
134  if ( ierr > 0 ) then !--- fatal error
135  log_error('IO_setup',*) 'Not appropriate names in namelist PARAM_IO . Check!'
136  stop
137  endif
138  end if
139 
140  return

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().

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 148 of file scale_io.F90.

148  implicit none
149 
150  integer, intent(in) :: myrank
151  logical, intent(in) :: is_master
152 
153  namelist / param_io / &
154  h_source, &
155  h_institute, &
156  io_log_basename, &
157  io_nml_filename, &
158  io_log_suppress, &
159  io_log_nml_suppress, &
160  io_log_allnode
161 
162  character(len=H_LONG) :: fname
163 
164  integer :: ierr
165  !---------------------------------------------------------------------------
166 
167  if ( io_log_suppress ) then
168  io_l = .false.
169  else
170  if ( is_master ) then ! master node
171  io_l = .true.
172  else
173  io_l = io_log_allnode
174  endif
175  endif
176 
177  if ( io_log_nml_suppress ) then
178  io_nml = .false.
179  else
180  io_nml = io_l
181  endif
182 
183  if ( io_l ) then
184 
185  !--- Open logfile
186  if ( io_log_basename == io_stdout ) then
187  io_fid_log = io_fid_stdout
188  else
189  io_fid_log = io_get_available_fid()
190  call io_make_idstr(fname,trim(io_log_basename),'pe',myrank)
191  open( unit = io_fid_log, &
192  file = trim(fname), &
193  form = 'formatted', &
194  iostat = ierr )
195  if ( ierr /= 0 ) then
196  log_error('IO_LOG_setup',*) 'File open error! :', trim(fname)
197  stop
198  endif
199  endif
200 
201  if ( io_fid_log .ne. io_fid_stdout ) then
202  write(io_fid_log,*) ''
203  write(io_fid_log,*) ' -+++++++++; '
204  write(io_fid_log,*) ' ++++++++++++++= '
205  write(io_fid_log,*) ' ++++++++++++++++++- '
206  write(io_fid_log,*) ' +++++++++++++++++++++ '
207  write(io_fid_log,*) ' .+++++++++++++++++++++++ '
208  write(io_fid_log,*) ' +++++++++++++++++++++++++ '
209  write(io_fid_log,*) ' +++++++++++++++++++++++++++ '
210  write(io_fid_log,*) ' =++++++=x######+++++++++++++; '
211  write(io_fid_log,*) ' .++++++X####XX####++++++++++++ '
212  write(io_fid_log,*) ' =+xxx=, ++++ +++++=##+ .###++++++++++- '
213  write(io_fid_log,*) ' ,xxxxxxxxxx- +++++.+++++=## .##++++++++++ '
214  write(io_fid_log,*) ' xxxxxxxxxxxxx -+++x#;+++++#+ ##+++++++++. '
215  write(io_fid_log,*) ' xxxxxxxx##xxxx, ++++# +++++XX #+++++++++- '
216  write(io_fid_log,*) ' xxxxxxx####+xx+x ++++#.++++++# #+++++++++ '
217  write(io_fid_log,*) ' +xxxxxX#X #Xx#= =+++#x=++++=#. x=++++++++ '
218  write(io_fid_log,*) ' xxxxxx#, x### .++++#,+++++#= x++++++++ '
219  write(io_fid_log,*) ' xxxxxx#. ++++# +++++x# #++++++++ '
220  write(io_fid_log,*) ' xxxxxx+ ++++#-+++++=# #++++++++ '
221  write(io_fid_log,*) ',xxxxxX -+++XX-+++++#, +++++++++ '
222  write(io_fid_log,*) '=xxxxxX .++++#.+++++#x -++++++++ '
223  write(io_fid_log,*) '+xxxxx= ++++#.++++++# ++++++++# '
224  write(io_fid_log,*) 'xxxxxx; ++++#+=++++=# ++++++++# '
225  write(io_fid_log,*) 'xxxxxxx ,+++x#,+++++#- ;++++++++- '
226  write(io_fid_log,*) '#xxxxxx +++=# +++++xX ++++++++# '
227  write(io_fid_log,*) 'xxxxxxxx ++++#-+++++=# +++++++++X '
228  write(io_fid_log,*) '-+xxxxxx+ ++++X#-++++=#. -++; =++++++++# '
229  write(io_fid_log,*) ' #xxxxxxxx. .+++++# +++++#x =++++- +++++++++XX '
230  write(io_fid_log,*) ' #xxxxxxxxxx=--=++++++#.++++++# ++++++ -+++++++++x# '
231  write(io_fid_log,*) ' #+xxxxxxxxxx+++++++#x=++++=# ++++++;=+++++++++++x# '
232  write(io_fid_log,*) ' =#+xxxxxxxx+++++++##,+++++#= =++++++++++++++++++##. '
233  write(io_fid_log,*) ' X#xxxxxxxx++++++## +++++x# ;x++++++++++++++++##. '
234  write(io_fid_log,*) ' x##+xxxx+++++x## +++++=# ##++++++++++++x##X '
235  write(io_fid_log,*) ' ,###Xx+++x###x -++++=#, .####x+++++X####. '
236  write(io_fid_log,*) ' -########+ -#####x .X#########+. '
237  write(io_fid_log,*) ' .,. ...... .,. '
238  write(io_fid_log,*) ' '
239  write(io_fid_log,*) ' .X####### +###- =###+ ###x x######## '
240  write(io_fid_log,*) ' .######### ######X ####### #### .#########x '
241  write(io_fid_log,*) ' ####+++++= X#######. -#######x .###; ####x+++++. '
242  write(io_fid_log,*) ' ### ###= #### #### x### #### -###. '
243  write(io_fid_log,*) ' .### #### ###+ X### ###X =###. #### '
244  write(io_fid_log,*) ' ###- ;###, .###+ -### #### x##########+ '
245  write(io_fid_log,*) ' +####x #### #### #### #### ###########. '
246  write(io_fid_log,*) ' x######. =### ###, .###- ###+ x###-------- '
247  write(io_fid_log,*) ' =##### X### -### #### ,### #### '
248  write(io_fid_log,*) ' .###=x###; .###+ ###X ###X ####. '
249  write(io_fid_log,*) ' ###########; ###########+ ########### ########### ,##########. '
250  write(io_fid_log,*) '-########### ,##########, #########X ########## +######### '
251  write(io_fid_log,*) ',,,,,,,,,,. ,,,,,,,,, .,,,,,,,. .,,,,,,,, ,,,,,,,, '
252  write(io_fid_log,*) ' '
253  write(io_fid_log,*) ' SCALE : Scalable Computing by Advanced Library and Environment '
254  write(io_fid_log,*) ''
255  write(io_fid_log,*) trim(h_libname)
256  write(io_fid_log,*) trim(h_appname)
257 
258 
259  log_newline
260  log_info("IO_LOG_setup",*) 'Setup'
261 
262  log_info('IO_LOG_setup','(1x,A,I3)') 'Open config file, FID = ', io_fid_conf
263  log_info('IO_LOG_setup','(1x,A,I3)') 'Open log file, FID = ', io_fid_log
264  log_info('IO_LOG_setup','(1x,2A)') 'basename of log file = ', trim(io_log_basename)
265  log_newline
266  end if
267 
268  else
269  if( is_master ) write(*,*) '*** Log report is suppressed.'
270  endif
271 
272  if ( io_nml_filename /= '' ) then
273  log_info("IO_LOG_setup",*) 'The used configurations are output to the file.'
274  log_info("IO_LOG_setup",*) 'filename of used config file = ', trim(io_nml_filename)
275 
276  if ( is_master ) then ! write from master node only
277  io_nml = .true. ! force on
278  io_fid_nml = io_get_available_fid()
279  open( unit = io_fid_nml, &
280  file = trim(io_nml_filename), &
281  form = 'formatted', &
282  iostat = ierr )
283  if ( ierr /= 0 ) then
284  log_error('IO_LOG_setup',*) 'File open error! :', trim(io_nml_filename)
285  stop 1
286  endif
287 
288  log_info("IO_LOG_setup",'(1x,A,I3)') 'Open file to output used config, FID = ', io_fid_nml
289 
290  write(io_fid_nml,'(A)') '################################################################################'
291  write(io_fid_nml,'(A)') '#! configulation'
292  write(io_fid_nml,'(2A)') '#! ', trim(h_libname)
293  write(io_fid_nml,'(2A)') '#! ', trim(h_appname)
294  write(io_fid_nml,'(A)') '################################################################################'
295  log_nml(param_io)
296  else
297  io_nml = .false. ! force off
298  io_fid_nml = -1
299 
300  log_info("IO_LOG_setup",*) 'The file for used config is open by the master rank'
301  endif
302  else
303  if ( io_nml ) then
304  io_fid_nml = io_fid_log
305 
306  log_info("IO_LOG_setup",*) 'The used config is output to the log.'
307  else
308  log_info("IO_LOG_setup",*) 'The used config is not output.'
309  endif
310  endif
311 
312  write(io_localrank,'(I6.6)') myrank
313 
314  return

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_localrank, 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().

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 321 of file scale_io.F90.

321  implicit none
322 
323  integer :: fid
324  logical :: i_opened
325  !---------------------------------------------------------------------------
326 
327  do fid = io_minfid, io_maxfid
328  inquire(fid,opened=i_opened)
329  if ( .NOT. i_opened ) return
330  enddo
331 
332  if ( fid >= io_maxfid ) then ! reach limit
333  log_error("IO_get_available_fid",*) 'Used I/O unit number reached to the limit! STOP'
334  stop 1
335  endif
336 

Referenced by scale_atmos_grid_cartesc_real::atmos_grid_cartesc_real_setup(), scale_atmos_phy_lt_sato2019::atmos_phy_lt_sato2019_setup(), 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(), scale_comm_cartesc_nest::comm_cartesc_nest_setup(), scale_file_grads::file_grads_close(), scale_file_grads::file_grads_open(), 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_check(), scale_monitor::monitor_write(), scale_prc_icoa::prc_icoa_setup(), mod_mkinit::read_sounding(), and scale_urban_dyn_kusaka01::urban_dyn_kusaka01().

Here is the caller graph for this function:

◆ io_set_universalrank()

subroutine, public scale_io::io_set_universalrank ( integer, intent(in)  myrank,
integer, intent(in)  jobid,
integer, intent(in)  domainid 
)

Put for error log.

Parameters
[in]myrankmy rank ID (universal)
[in]jobidbulk job ID
[in]domainidnesting domain ID

Definition at line 345 of file scale_io.F90.

345  implicit none
346 
347  integer, intent(in) :: myrank
348  integer, intent(in) :: jobid
349  integer, intent(in) :: domainid
350  !---------------------------------------------------------------------------
351 
352  write(io_universalrank,'(I6.6)') myrank
353  write(io_jobid ,'(I6.6)') jobid
354  write(io_domainid ,'(I6.6)') domainid
355 
356  return

References io_domainid, io_jobid, and io_universalrank.

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

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 367 of file scale_io.F90.

367  implicit none
368 
369  character(len=H_LONG), intent(out) :: outstr
370  character(len=*), intent(in) :: instr
371  character(len=*), intent(in) :: ext
372  integer, intent(in) :: rank
373  logical, intent(in), optional :: isrgn
374 
375  character(len=H_SHORT) :: srank
376  !---------------------------------------------------------------------------
377 
378  write(srank,'(I6.6)') rank
379 
380  if ( present(isrgn) ) then
381  if(isrgn) write(srank,'(I8.8)') rank-1
382  endif
383 
384  outstr = trim(instr)//'.'//trim(ext)//trim(srank)
385 
386  return

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

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 393 of file scale_io.F90.

393  implicit none
394  logical, intent(in) :: is_master
395  logical, intent(in), optional :: allow_noconf
396 
397  character(len=H_LONG) :: fname
398  logical :: allow_noconf_
399  !---------------------------------------------------------------------------
400 
401  if ( command_argument_count() < 1 ) then
402  allow_noconf_ = .false.
403  if ( present(allow_noconf) ) allow_noconf_ = allow_noconf
404  if ( .not. allow_noconf_ ) then
405  if(is_master) then
406  log_error("IO_ARG_getfname",*) 'Program needs config file from argument! STOP.'
407  end if
408  stop
409  else
410  fname = io_nullfile
411  end if
412  else
413  call get_command_argument(1,fname)
414  endif
415 

References io_nullfile.

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

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 425 of file scale_io.F90.

425  implicit none
426 
427  character(len=*), intent(in) :: fname
428  logical, intent(in) :: is_master
429  integer :: fid
430 
431  integer :: ierr
432  !---------------------------------------------------------------------------
433 
434  fid = io_get_available_fid()
435 
436  open( unit = fid, &
437  file = trim(fname), &
438  form = 'formatted', &
439  status = 'old', &
440  iostat = ierr )
441 
442  if ( ierr /= 0 ) then
443  if(is_master) then
444  log_error("IO_CNF_open",*) 'Failed to open config file! STOP.'
445  log_error("IO_CNF_open",*) 'filename : ', trim(fname)
446  end if
447  stop 1
448  endif
449 

References io_get_available_fid().

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

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 44 of file scale_io.F90.

44  integer, public, parameter :: H_SHORT = file_hshort

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

◆ h_mid

integer, parameter, public scale_io::h_mid = File_HMID

Character length (short=64)

Definition at line 45 of file scale_io.F90.

45  integer, public, parameter :: H_MID = file_hmid

◆ h_long

integer, parameter, public scale_io::h_long = File_HLONG

Character length (short=256)

Definition at line 46 of file scale_io.F90.

46  integer, public, parameter :: H_LONG = file_hlong

◆ h_appname

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

name of the application

Definition at line 48 of file scale_io.F90.

48  character(len=H_MID), public :: H_APPNAME

Referenced by io_log_setup(), and io_setup().

◆ h_libname

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

name and version of the library

Definition at line 49 of file scale_io.F90.

49  character(len=H_MID), public :: H_LIBNAME

Referenced by io_log_setup(), and io_setup().

◆ h_source

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

for file header

Definition at line 50 of file scale_io.F90.

50  character(len=H_MID), public :: H_SOURCE

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().

◆ h_institute

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

for file header

Definition at line 51 of file scale_io.F90.

51  character(len=H_MID), public :: H_INSTITUTE = 'RIKEN'

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().

◆ io_nullfile

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

Definition at line 53 of file scale_io.F90.

53  character(len=9), public, parameter :: IO_NULLFILE = "/dev/null"

Referenced by io_arg_getfname().

◆ io_stdout

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

Definition at line 54 of file scale_io.F90.

54  character(len=6), public, parameter :: IO_STDOUT = "STDOUT"

Referenced by io_log_setup(), and io_setup().

◆ io_fid_stdout

integer, parameter, public scale_io::io_fid_stdout = 6

Definition at line 55 of file scale_io.F90.

55  integer, public, parameter :: IO_FID_STDOUT = 6

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

◆ io_fid_conf

integer, public scale_io::io_fid_conf = -1

Config file ID.

Definition at line 56 of file scale_io.F90.

56  integer, public :: IO_FID_CONF = -1

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_large_fvm_heve::atmos_dyn_tstep_large_fvm_heve_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_main(), 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(), scale_atmos_phy_ae_offline::atmos_phy_ae_offline_setup(), mod_atmos_phy_ae_vars::atmos_phy_ae_vars_setup(), scale_atmos_phy_bl_mynn::atmos_phy_bl_mynn_setup(), scale_atmos_phy_bl_mynn::atmos_phy_bl_mynn_tracer_setup(), mod_atmos_phy_bl_vars::atmos_phy_bl_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_lt_driver::atmos_phy_lt_driver_setup(), scale_atmos_phy_lt_sato2019::atmos_phy_lt_sato2019_setup(), mod_atmos_phy_lt_vars::atmos_phy_lt_vars_setup(), mod_atmos_phy_mp_driver::atmos_phy_mp_driver_setup(), scale_atmos_phy_mp_sn14::atmos_phy_mp_sn14_setup(), scale_atmos_phy_mp_sn14::atmos_phy_mp_sn14_terminal_velocity(), 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(), mod_atmos_phy_rd_driver::atmos_phy_rd_driver_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_cnvlanduse::cnvlanduse(), mod_cnvlanduse::cnvlanduse_setup(), mod_cnvtopo::cnvtopo(), mod_cnvtopo::cnvtopo_setup(), mod_cnvuser::cnvuser_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_coriolis::coriolis_setup(), 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_check(), mod_land_vars::land_vars_setup(), scale_landuse::landuse_setup(), scale_mapprojection::mapprojection_setup(), mod_mkinit::mkinit(), mod_mkinit::mkinit_setup(), mod_mktopo::mktopo(), mod_mktopo::mktopo_setup(), scale_monitor::monitor_setup(), 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_spnudge::spnudge_setup(), scale_statistics::statistics_setup(), mod_mkinit::tke_setup(), scale_topography::topography_setup(), 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().

◆ 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 58 of file scale_io.F90.

58  integer, public :: IO_FID_NML = -1

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

◆ io_log_basename

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

basename of logfile

Definition at line 60 of file scale_io.F90.

60  character(len=H_LONG), public :: IO_LOG_BASENAME = 'LOG'

Referenced by io_log_setup(), and io_setup().

◆ io_nml_filename

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

filename of logfile (only for output namelist)

Definition at line 61 of file scale_io.F90.

61  character(len=H_LONG), public :: IO_NML_FILENAME = ''

Referenced by io_log_setup(), and io_setup().

◆ io_l

logical, public scale_io::io_l = .false.

◆ io_nml

logical, public scale_io::io_nml = .false.

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

Definition at line 63 of file scale_io.F90.

63  logical, public :: IO_NML = .false.

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

◆ io_log_suppress

logical, public scale_io::io_log_suppress = .false.

suppress all of log output?

Definition at line 64 of file scale_io.F90.

64  logical, public :: IO_LOG_SUPPRESS = .false.

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

◆ io_log_nml_suppress

logical, public scale_io::io_log_nml_suppress = .false.

suppress all of log output? (for namelist)

Definition at line 65 of file scale_io.F90.

65  logical, public :: IO_LOG_NML_SUPPRESS = .false.

Referenced by io_log_setup(), and io_setup().

◆ io_log_allnode

logical, public scale_io::io_log_allnode = .false.

output log for each node?

Definition at line 66 of file scale_io.F90.

66  logical, public :: IO_LOG_ALLNODE = .false.

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

◆ 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 67 of file scale_io.F90.

67  integer, public :: IO_STEP_TO_STDOUT = -1

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

◆ io_universalrank

character(len=6), public scale_io::io_universalrank = "UNKNWN"

universal rank for error log

Definition at line 69 of file scale_io.F90.

69  character(len=6), public :: IO_UNIVERSALRANK = "UNKNWN"

Referenced by io_set_universalrank().

◆ io_jobid

character(len=6), public scale_io::io_jobid = "UNKNWN"

bulk job id for error log

Definition at line 70 of file scale_io.F90.

70  character(len=6), public :: IO_JOBID = "UNKNWN"

Referenced by io_set_universalrank().

◆ io_domainid

character(len=6), public scale_io::io_domainid = "UNKNWN"

nesting domain id for error log

Definition at line 71 of file scale_io.F90.

71  character(len=6), public :: IO_DOMAINID = "UNKNWN"

Referenced by io_set_universalrank().

◆ io_localrank

character(len=6), public scale_io::io_localrank = "UNKNWN"

local rank for error log

Definition at line 72 of file scale_io.F90.

72  character(len=6), public :: IO_LOCALRANK = "UNKNWN"

Referenced by io_log_setup().