Commit 1c2af4d6 authored by Dmitry Bagaev's avatar Dmitry Bagaev

Silence set parameter in BIILU2 interfaces

parent 077e99f1
...@@ -165,7 +165,9 @@ namespace INMOST { ...@@ -165,7 +165,9 @@ namespace INMOST {
if (name == "time_total") return INMOST::to_string(time_prec + iter_time); if (name == "time_total") return INMOST::to_string(time_prec + iter_time);
if (name == "prec_density") return INMOST::to_string(solver_data->dstat[0]); if (name == "prec_density") return INMOST::to_string(solver_data->dstat[0]);
if (name == "pivot_mod") return INMOST::to_string(solver_data->istat[0]); if (name == "pivot_mod") return INMOST::to_string(solver_data->istat[0]);
#if !defined(SILENCE_SET_PARAMETER)
std::cout << "Parameter " << name << " is unknown" << std::endl; std::cout << "Parameter " << name << " is unknown" << std::endl;
#endif
return ""; return "";
} }
...@@ -176,7 +178,9 @@ namespace INMOST { ...@@ -176,7 +178,9 @@ namespace INMOST {
else if (name == "eps") solver_data->eps = atof(val); else if (name == "eps") solver_data->eps = atof(val);
else if (name == "nit") solver_data->nit = atoi(val); else if (name == "nit") solver_data->nit = atoi(val);
else if (name == "msglev") solver_data->msglev = atoi(val); else if (name == "msglev") solver_data->msglev = atoi(val);
#if !defined(SILENCE_SET_PARAMETER)
else std::cout << "Parameter " << name << " is unknown" << std::endl; else std::cout << "Parameter " << name << " is unknown" << std::endl;
#endif
} }
const INMOST_DATA_ENUM_TYPE SolverFCBIILU2::Iterations() const { const INMOST_DATA_ENUM_TYPE SolverFCBIILU2::Iterations() const {
......
...@@ -171,7 +171,9 @@ namespace INMOST { ...@@ -171,7 +171,9 @@ namespace INMOST {
if (name == "time_total") return INMOST::to_string(time_prec + iter_time); if (name == "time_total") return INMOST::to_string(time_prec + iter_time);
if (name == "prec_density") return INMOST::to_string(solver_data->dstat[0]); if (name == "prec_density") return INMOST::to_string(solver_data->dstat[0]);
if (name == "pivot_mod") return INMOST::to_string(solver_data->istat[0]); if (name == "pivot_mod") return INMOST::to_string(solver_data->istat[0]);
#if !defined(SILENCE_SET_PARAMETER)
std::cout << "Parameter " << name << " is unknown" << std::endl; std::cout << "Parameter " << name << " is unknown" << std::endl;
#endif
return ""; return "";
} }
...@@ -184,7 +186,9 @@ namespace INMOST { ...@@ -184,7 +186,9 @@ namespace INMOST {
solver_data->pParams->tau2 = -1.0; solver_data->pParams->tau2 = -1.0;
} else if (name == "nit") solver_data->pParIter->maxit = atoi(val); } else if (name == "nit") solver_data->pParIter->maxit = atoi(val);
else if (name == "eps") solver_data->pParIter->eps = atof(val); else if (name == "eps") solver_data->pParIter->eps = atof(val);
#if !defined(SILENCE_SET_PARAMETER)
else std::cout << "Parameter " << name << " is unknown" << std::endl; else std::cout << "Parameter " << name << " is unknown" << std::endl;
#endif
} }
const INMOST_DATA_ENUM_TYPE SolverK3BIILU2::Iterations() const { const INMOST_DATA_ENUM_TYPE SolverK3BIILU2::Iterations() const {
......
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