I would like to be able to monitor the progress of the ‘solve(a == L, u, bc)’ line of code in the f101_poisson.py example. Is this possible with TQDM (or at all)?
The computationally dominant component of solving a finite element problem is the solution or approximation of the underlying linear algebra system. This is typically done with an external package such at what’s encapsulated by PETSc or Scipy. This presents an architectural challenge since tqdm
is not designed for such use. We usually measure progress of linear solvers by examining the residual at each iteration (eg with a KSP monitor); rather than a tool like tqdm
. tqdm
would be better suited for something like a time dependent problem where you compute many linear solves over a predetermined discretisation of the time domain.
2 Likes
I’ll give it a go thanks!