Definition at line 208 of file dc_clock.f90.
◆ dcclockpredict0()
subroutine dc_clock::predict::dcclockpredict0 |
( |
type(clock), intent(in) |
clk, |
|
|
real, intent(in) |
progress, |
|
|
integer, intent(in), optional |
unit, |
|
|
logical, intent(out), optional |
err |
|
) |
| |
|
private |
Definition at line 855 of file dc_clock.f90.
892 type(clock),
intent(in):: clk
893 real,
intent(in):: progress
894 integer,
intent(in),
optional:: unit
895 logical,
intent(out),
optional:: err
896 character(STRING):: cause_c
897 integer:: stat, out_unit
900 character(7):: prog_percent
901 character(25):: prog_bar
902 integer:: prog_bar_ptr
904 character(*),
parameter:: subname =
'DCClockPredict' 906 call beginsub(subname)
909 if (.not. clk % initialized)
then 910 call messagenotify(
'W', subname,
'Call Create before Predict in dc_clock.')
911 call dbgmessage(
'Ignored because input argument was not initialized.')
915 if (progress <= 0.0)
then 916 call messagenotify(
'W', subname,
'Specify 0.0 -- 1.0 value to "progress"')
918 elseif (progress > 1.0)
then 919 call messagenotify(
'W', subname,
'Over 1.0 value to "progress" was modified to 1.0')
922 prog_valid = progress
924 if (
present(unit))
then 930 & sec =
real(nint(EvalSec(clk) / prog_valid * (1.0 - prog_valid)), DP) )
932 comp_date = cur_date + remain_diff
934 prog_percent = adjustr(trim(printf_g5_2(
real(prog_valid * 100,
dp))) //
'%')
936 prog_bar_ptr =
int(prog_valid * 25)
937 if (prog_bar_ptr > 0) prog_bar(1:prog_bar_ptr) =
'*************************' 940 &
' ########## PREDICTION OF CALCULATION ###########')
942 &
' Start Date %c', c1=trim(
tochar(clk % start_date)))
944 &
' Current Date %c', c1=trim(
tochar(cur_date)))
946 &
' Progress %c [%c]', c1=prog_percent, c2=prog_bar)
948 &
' Remaining CPU TIME %c %c', &
949 & c1=trim(result_value_form(
evalsec(remain_diff))), &
950 & c2=trim(fit_unit_value(0.0_dp, remain_diff)))
952 &
' Completion Date %c', c1=trim(
tochar(comp_date)))
integer, parameter, public dc_enotinit
subroutine, public storeerror(number, where, err, cause_c, cause_i)
integer, parameter, public dc_noerr
integer, parameter, public dp
倍精度実数型変数
integer, parameter, public stdout
標準出力の装置番号
The documentation for this interface was generated from the following file: