netlist: include timestamp in newton-raphson loop warnings.

This commit is contained in:
couriersud 2020-07-18 17:38:37 +02:00
parent 9842c33b16
commit a1bb5475cc
2 changed files with 4 additions and 4 deletions

View File

@ -133,8 +133,8 @@ namespace netlist
PERRMSGV(MF_UNHANDLED_ELEMENT_1_FOUND, 1, "setup_base:unhandled element <{1}> found") PERRMSGV(MF_UNHANDLED_ELEMENT_1_FOUND, 1, "setup_base:unhandled element <{1}> found")
PERRMSGV(MF_FOUND_TERM_WITH_MISSING_OTHERNET, 1, "found term with missing othernet {1}") PERRMSGV(MF_FOUND_TERM_WITH_MISSING_OTHERNET, 1, "found term with missing othernet {1}")
PERRMSGV(MW_NEWTON_LOOPS_EXCEEDED_INVOCATION_2, 2, "NEWTON_LOOPS exceeded resolution invoked {1} times on net {2}") PERRMSGV(MW_NEWTON_LOOPS_EXCEEDED_INVOCATION_3, 3, "NEWTON_LOOPS exceeded resolution invoked {1} times on net {2} at {3} us")
PERRMSGV(MW_NEWTON_LOOPS_EXCEEDED_ON_NET_1, 1, "NEWTON_LOOPS exceeded resolution failed on net {1} ... reschedule") PERRMSGV(MW_NEWTON_LOOPS_EXCEEDED_ON_NET_2, 2, "NEWTON_LOOPS exceeded resolution failed on net {1} ... reschedule at {2} us")
// nld_solver.cpp // nld_solver.cpp

View File

@ -490,12 +490,12 @@ namespace solver
} }
if (m_stat_newton_raphson % 100 == 0) if (m_stat_newton_raphson % 100 == 0)
log().warning(MW_NEWTON_LOOPS_EXCEEDED_INVOCATION_2(100, this->name())); log().warning(MW_NEWTON_LOOPS_EXCEEDED_INVOCATION_3(100, this->name(), exec().time().as_double() * 1e6));
if (resched && !m_Q_sync.net().is_queued()) if (resched && !m_Q_sync.net().is_queued())
{ {
// reschedule .... // reschedule ....
log().warning(MW_NEWTON_LOOPS_EXCEEDED_ON_NET_1(this->name())); log().warning(MW_NEWTON_LOOPS_EXCEEDED_ON_NET_2(this->name(), exec().time().as_double() * 1e6));
// FIXME: test and enable - this is working better, though not optimal yet // FIXME: test and enable - this is working better, though not optimal yet
#if 0 #if 0
// Don't store, the result can not be used // Don't store, the result can not be used