Hello. Are there any way to get current iteration number or current iteration residual for parallel iterative Solvers during calculation. I have large linear system for FEM and sometimes I need to get this information to show progress to user.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello. Are there any way to get current iteration number or current iteration residual for parallel iterative Solvers during calculation. I have large linear system for FEM and sometimes I need to get this information to show progress to user.
Hi Dmitriy,
you can use the monitor functions for this. There are dedicated solver classes with
set_monitor
-routines available, e.g. https://github.com/viennacl/viennacl-dev/blob/master/viennacl/linalg/bicgstab.hpp#L537See also iterative-custom.cpp as an example: https://github.com/viennacl/viennacl-dev/blob/master/examples/tutorial/iterative-custom.cpp
Best regards,
Karli