FE-Project
Loading...
Searching...
No Matches
Data Types | Functions/Subroutines | Variables
scale_file_restart_meshfield Module Reference

module FElib / File / Restart More...

Data Types

type  file_restart_meshfield_component
 

Functions/Subroutines

subroutine, public file_restart_meshfield_setup ()
 

Variables

type(file_restart_meshfield), public restart_file
 

Detailed Description

module FElib / File / Restart

Description
A module for outputing data to restart simulations
Author
Yuta Kawai, Team SCALE
NAMELIST
  • PARAM_RESTART
    nametypedefault valuecomment
    OUTPUT_FLAG logical .false. Output restart file?
    IN_BASENAME character(*)
    IN_POSTFIX_TIMELABEL logical
    OUT_BASENAME character(*)
    OUT_POSTFIX_TIMELABEL logical
    OUT_TITLE character(*)
    OUT_DTYPE character(*)

History Output
No history output

Function/Subroutine Documentation

◆ file_restart_meshfield_setup()

subroutine, public scale_file_restart_meshfield::file_restart_meshfield_setup

Definition at line 122 of file scale_file_restart_meshfield.F90.

123 implicit none
124
125 logical :: OUTPUT_FLAG = .false.
126 character(len=H_LONG) :: IN_BASENAME = ''
127 logical :: IN_POSTFIX_TIMELABEL = .false.
128 character(len=H_LONG) :: OUT_BASENAME = ''
129 logical :: OUT_POSTFIX_TIMELABEL = .true.
130 character(len=H_MID) :: OUT_TITLE = ''
131 character(len=H_SHORT) :: OUT_DTYPE = 'DEFAULT'
132
133 namelist / param_restart / &
134 output_flag, &
135 in_basename, &
136 in_postfix_timelabel, &
137 out_basename, &
138 out_postfix_timelabel, &
139 out_title, &
140 out_dtype
141
142 integer :: ierr
143 !----------------------------------------
144
145 log_newline
146
147 !--- read namelist
148 rewind(io_fid_conf)
149 read(io_fid_conf,nml=param_restart,iostat=ierr)
150 if( ierr < 0 ) then !--- missing
151 log_info("FILE_restart_meshfield_setup",*) 'Not found namelist. Default used.'
152 elseif( ierr > 0 ) then !--- fatal error
153 log_error("FILE_restart_meshfield_setup",*) 'Not appropriate names in namelist PARAM_RESTART. Check!'
154 call prc_abort
155 endif
156 log_nml(param_restart)
157
158 restart_file%flag_output = output_flag
159
160 restart_file%in_basename = in_basename
161 restart_file%in_postfix_timelabel = in_postfix_timelabel
162
163 restart_file%out_basename = out_basename
164 restart_file%out_postfix_timelabel = out_postfix_timelabel
165 restart_file%out_title = out_title
166 restart_file%out_dtype = out_dtype
167
168 restart_file%base%fid = -1
169
170 return

References restart_file.

Referenced by mod_dg_driver::dg_driver(), and mod_dg_prep::dg_prep().

Variable Documentation

◆ restart_file

type(file_restart_meshfield), public scale_file_restart_meshfield::restart_file

Definition at line 77 of file scale_file_restart_meshfield.F90.

77 type(FILE_restart_meshfield), public :: restart_file

Referenced by mod_dg_driver::dg_driver(), and file_restart_meshfield_setup().