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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| percent | integer | in | the percentage done | |
| name | character(len=*) | in | the stage | |
| count | integer | in | how many steps are done | |
| size | integer | in | how many there are | |
| line | character(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