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