Repository navigation
Disable debug info printing for HykktSolver - #475
Conversation
… final error by default. Log them with verbosity level misc.
|
I don't have HiOp set up, so I didn't test it there. |
pelesh
left a comment
There was a problem hiding this comment.
In principle, solver should not print data for routine operations. This is something that can be monitored with debugger.
The solver should only log the error messages such as in the case when it does not converge after max number of iterations is reached.
If we need solver statistics, we should store number of iterations, error norms, etc., in member variables, but this is beyond the scope of this PR. Here I suggest simply removing solver outputs except in the case of convergence failure.
…ount and final error by default. Log them with verbosity level misc." This reverts commit f599072.
Fixed. I moved all prints from the solvers into the tests themselves. Made |
pelesh
left a comment
There was a problem hiding this comment.
Two minor issues to address and we are ready to merge.
To be consistent with the rest of Re::Solve code, the |
Fixed. Now both |
Description
HykktSolver prints debug info (conjugate gradient iteration count and error, and overall solver error). This change disables this by default and instead logs it with verbosity level
misc. Resolves #474.Proposed changes
Log debug info using the logger.
Set logger verbosity level to
EVERYTHINGinHykktSolverTestsandHykktSCCGTestsbefore callingsolve.Checklist
make testandmake test_installper testing instructions). Code tested on./examples/<your_example>.exe -hto get instructions how to run examples). Code tested on:-Wall -Wpedantic -Wconversion -Wextra.Further comments