fdoc

subroutineprogress_linepure

pure subroutine progress_line(percent, name, count, size, line)

The line for another program of count of size steps done in stage name.

Arguments

NameTypeIntentAttributesDescription
percentintegerin

the percentage done

namecharacter(len=*)in

the stage

countintegerin

how many steps are done

sizeintegerin

how many there are

linecharacter(len=*)out

the line

Called by

Source

Show the code
pure subroutine progress_line(percent, name, count, size, line)
    integer, intent(in) :: percent          !! the percentage done
    character(len=*), intent(in) :: name    !! the stage
    integer, intent(in) :: count            !! how many steps are done
    integer, intent(in) :: size             !! how many there are
    character(len=*), intent(out) :: line   !! the line

    write (line, '(a,i3,a,a,1x,i0,a,i0)') '[', percent, '%] ', trim(name), count, '/', size
end subroutine progress_line