Reenable LOG_STATS - issue fixed by smf 12 months ago is gone. (nw)

This commit is contained in:
couriersud 2019-01-13 01:38:21 +01:00
parent 4f9b26bad9
commit b04e13d142
2 changed files with 10 additions and 10 deletions

View File

@ -100,7 +100,7 @@ NETLIB_UPDATE(solver)
if (m_mat_solvers[i]->has_timestep_devices() || force_solve)
solv[t_cnt++] = i;
if (nthreads > 1 && t_cnt > 1)
//if (nthreads > 1 && t_cnt > 1)
{
plib::omp::set_num_threads(nthreads);
plib::omp::for_static(static_cast<std::size_t>(0), t_cnt, [this, &solv](std::size_t i)
@ -109,13 +109,13 @@ NETLIB_UPDATE(solver)
plib::unused_var(ts);
});
}
else
for (auto & solver : m_mat_solvers)
if (solver->has_timestep_devices() || force_solve)
{
const netlist_time ts = solver->solve();
plib::unused_var(ts);
};
// else
// for (auto & solver : m_mat_solvers)
// if (solver->has_timestep_devices() || force_solve)
// {
// const netlist_time ts = solver->solve();
// plib::unused_var(ts);
// }
for (auto & solver : m_mat_solvers)
if (solver->has_timestep_devices() || force_solve)

View File

@ -55,7 +55,7 @@ NETLIB_OBJECT(solver)
, m_dynamic_lte(*this, "DYNAMIC_LTE", 1e-5) // diff/timestep
, m_dynamic_min_ts(*this, "DYNAMIC_MIN_TIMESTEP", 1e-6) // nl_double timestep resolution
, m_log_stats(*this, "LOG_STATS", 0) // log statistics on shutdown
, m_log_stats(*this, "LOG_STATS", 1) // log statistics on shutdown
, m_params()
{
// internal staff
@ -96,8 +96,8 @@ protected:
param_logic_t m_log_stats;
std::vector<std::unique_ptr<matrix_solver_t>> m_mat_solvers;
private:
std::vector<std::unique_ptr<matrix_solver_t>> m_mat_solvers;
solver_parameters_t m_params;