Go to the documentation of this file.
53 character(len=40) :: msg
54 character(len=62) :: underline
55 character(len=10) :: value_len
56 character(len=8) :: unit_len
58 write(*,*)
" WinNet - Nuclear reaction network"
59 write(*,*)
" ==================================="
61 write(*,*)
" (Data creation mode)"
69 write(*,
"(A)") adjustl(msg)//
" : "//adjustr(value_len)//
" "//adjustr(unit_len)
70 underline =
"--------------------------------------------------------------"
71 write(*,
"(A)") underline
100 info_entry(
'write_final_stats_rate_creation')
102 write(*,
'(A)')
'----------------------------------'
103 write(*,
'(A)')
'Finished data creation successfully.'
106 info_exit(
'write_final_stats_rate_creation')
123 character(len=*),
intent(in) :: str_msg
124 character(len=*),
intent(in) :: value_str
125 character(len=*),
intent(in),
optional :: unit
126 character(len=40) :: msg
127 character(len=10) :: value_len
128 character(len=8) :: unit_len
129 character(len=62) :: tot_msg
134 value_len = value_str
135 if (
present(unit))
then
137 tot_msg = adjustl(msg)//
" : "//adjustr(value_len)//
" "//adjustr(unit_len)
139 tot_msg = adjustl(msg)//
" : "//adjustr(value_len)
142 write(*,
"(A)") tot_msg
156 character(len=*),
intent(in) :: input_string
161 read(input_string,
'(I10)',iostat=rstat)
str_to_int
164 if (rstat .ne. 0)
then
165 call raise_exception(
'Could not parse string "'//trim(adjustl(input_string))//&
180 character(len=*),
intent(in) :: input_string
188 if (rstat .ne. 0)
then
189 call raise_exception(
'Could not parse string "'//trim(adjustl(input_string))//&
206 real(
r_kind),
intent(in) :: num
209 character(len=50) :: out_msg
211 write(out_msg,
"(1pE10.2)") num_h
225 integer,
intent(in) :: num
228 character(len=50) :: out_msg
230 write(out_msg,*) num_h
246 character(len=*),
intent(in) :: msg
247 character(len=*),
optional,
intent(in) :: sub
248 integer,
optional,
intent(in) :: error_code
249 character(len=200) :: h_msg
250 character(len=30) :: ecode_msg
253 write(*,*)
"An error occured. Check 'ERR' file for further information."
256 if (
present(error_code))
then
259 ecode_msg=
"ERROR: W000000"
263 if (
present(sub))
then
264 h_msg =
"Location: "//sub//
"(): "
271 write(
error_id,
"(A)") trim(adjustl(ecode_msg))
273 write(
error_id,
"(A)") trim(adjustl(h_msg))
275 write(
error_id,
"(A)") trim(adjustl(msg))
character(:) function, allocatable, public int_to_str(num)
Converts a given integer to a string.
subroutine, public raise_exception(msg, sub, error_code)
Raise a exception with a given error message.
real(r_kind) function, public str_to_float(input_string)
Converts a string to a float.
subroutine, public write_data_to_std_out(str_msg, value_str, unit)
Write data to the standard output (usually OUT)
logical, public data_creation_mode
Flag for rate creation mode.
subroutine, private write_header()
Write the header of the standard output (usually OUT)
subroutine, public write_final_stats_rate_creation
Write the final stats for rate creation.
integer function, public str_to_int(input_string)
Converts a string to an integer.
character(:) function, allocatable, public num_to_str(num)
Converts a given real to a string with format "(1pE10.2)".
integer, parameter error_id
Default standard error unit in fortran.
logical, private write_header_init
Init flag for write_data_to_std_out.