fdoc

subroutineprogress_start

subroutine progress_start(name, steps)

Start stage name, of steps steps, or of unknown length if that is 0.

Arguments

NameTypeIntentAttributesDescription
namecharacter(len=*)in

the stage

stepsintegerin

how many steps it has

Calls

Called by

Source

Show the code
subroutine progress_start(name, steps)
    character(len=*), intent(in) :: name    !! the stage
    integer, intent(in) :: steps            !! how many steps it has

    if (.not. enabled) return
    label = name
    total = steps
    done = 0
    call system_clock(stage_start)
    last_draw = stage_start
    last_percent = -1
    if (live) call draw()
    if (lines) call write_line(0)
end subroutine progress_start