Commit c10984b0 authored by Max Lyon's avatar Max Lyon

only set debug level if debug output is enabled

parent b97e0998
Pipeline #15562 passed with stages
in 4 minutes and 9 seconds
......@@ -126,7 +126,7 @@ int main(void)
Eigen::SparseMatrix<double> Ad = A.cast<double>();
Eigen::VectorXd bd = b.cast<double>();
{
Debug::ScopedOutputLevel output_lvl(0); // disable output for solve method
DEB_only(Debug::ScopedOutputLevel output_lvl(0)); // disable output for solve method
nsolver.solve(&problem, Ad, bd);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment