Displays information about a CLOCK type variable. Specify the output unit number in unit. If unit is not given, output goes to standard output.
611 implicit none
612 type(CLOCK), intent(in):: clk
613 integer, intent(in), optional:: unit
614 character(*), intent(in), optional:: indent
615 logical, intent(out), optional:: err
616 integer:: out_unit
617 character(STRING):: cause_c
618 integer:: stat
619 integer:: indent_len
620 character(STRING):: indent_str
621 character(*), parameter:: subname = 'DCClockPutLine'
622 continue
623 call beginsub(subname)
625 cause_c = 'CLOCK'
626 if (.not. clk % initialized) then
627 call messagenotify(
'W', subname,
'Call Create before PutLine in dc_clock.')
628 call dbgmessage('Ignored because input argument was not initialized.')
630 goto 999
631 end if
632 if (present(unit)) then
633 out_unit = unit
634 else
636 end if
637 indent_len = 0
638 indent_str = ''
639 if (present(indent)) then
640 if (len(indent) /= 0) then
641 indent_len = len(indent)
642 indent_str(1:indent_len) = indent
643 end if
644 end if
646 & indent_str(1:indent_len) // &
647 & '#<CLOCK:: @name=%c @clocking=%y @elapsed_time=%f sec. %c @start_date=%c>', &
648 & c1=trim(clk % name), l=(/clk % start_time > 0.0_dp/), &
649 & d=(/clk % elapsed_time/), &
650 & c2=trim(fit_unit_value(clk % elapsed_time)), &
651 & c3=trim(
tochar(clk % start_date)))
652 call dbgmessage('name=%c, output to device number %d', &
653 & c1=trim(clk % name), i=(/out_unit/))
654999 continue
656 call endsub(subname)
Date and time manipulation module.
subroutine, public storeerror(number, where, err, cause_c, cause_i)
integer, parameter, public dc_noerr
Error storage variables
integer, parameter, public dc_enotinit
-400 or less: DC utilities errors
Handling character types.
Provides kind type parameter values.
integer, parameter, public stdout
Unit number for Standard OUTPUT
integer, parameter, public dp
Double Precision Real number