subroutineprogress_enable
subroutine progress_enable(for_programs)
Turn progress reports on, with lines for another program if for_programs.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| for_programs | logical | in | true to write lines for another program |
Calls
Called by
Source
Show the code
subroutine progress_enable(for_programs)
logical, intent(in) :: for_programs !! true to write lines for another program
integer :: n, stat
enabled = .true.
lines = for_programs
live = c_isatty(1_c_int) == 1 .and. .not. lines
call get_environment_variable('NO_COLOR', length=n, status=stat)
colour = live .and. stat /= 0
call system_clock(run_start, rate)
end subroutine progress_enable