Skip to content

Commit 9233759

Browse files
Core Solver - Add LOG_LEVEL_PRINT_SOLVER_RESULTS.
1 parent 051606f commit 9233759

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/mmSolver/adjust/adjust_base.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ void printSolveDetails(const SolverResult &solverResult, SolverData &userData,
449449
MMSOLVER_MAYA_VRB("Function Evaluations: " << solverResult.functionEvals);
450450
MMSOLVER_MAYA_VRB("Jacobian Evaluations: " << solverResult.jacobianEvals);
451451

452-
if (logLevel >= LogLevel::kInfo) {
452+
if (logLevel >= LOG_LEVEL_PRINT_SOLVER_RESULTS) {
453453
console_log_solver_results(solverResult, timer);
454454
}
455455

src/mmSolver/adjust/adjust_data.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ const LogLevel LOG_LEVEL_PRINT_VERBOSE = LogLevel::kDebug;
118118
// terminal/Maya Output Window.
119119
const LogLevel LOG_LEVEL_PRINT_SOLVER_TIMING = LogLevel::kDebug;
120120

121+
// The LogLevel that will print solver results information to
122+
// terminal/Maya Output Window.
123+
const LogLevel LOG_LEVEL_PRINT_SOLVER_RESULTS = LogLevel::kInfo;
124+
121125
// The LogLevel that will print solver object count information to
122126
// terminal/Maya Output Window.
123127
const LogLevel LOG_LEVEL_PRINT_SOLVER_OBJECT_COUNTS = LogLevel::kDebug;

0 commit comments

Comments
 (0)