Progress¶
-
class
dolfin.cpp.common.
Progress
(*args)¶ Bases:
object
This class provides a simple way to create and update progress bars during a computation.
A progress bar may be used either in an iteration with a known number of steps:
Progress p("Iterating...", n); for (int i = 0; i < n; i++) { ... p++; }
or in an iteration with an unknown number of steps:
Progress p("Iterating..."); while (t < T) { ... p = t / T; }
Create progress bar with an unknown number of steps
Parameters: title (std::string) – (std::string) The title. -
thisown
¶ The membership flag
-
update
(other)¶ Update the progress with given number
-