summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/solver/nld_ms_w.h
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2016-05-31 23:49:55 +0200
committer couriersud <couriersud@arcor.de>2016-06-07 21:44:15 +0200
commit81880659d23b36598f498e32f24fd6a4cecbd80b (patch)
treed7cd226d8335ba06fab273b1616231881ecfe766 /src/lib/netlist/solver/nld_ms_w.h
parent3d3f5761f0b0419581762f72ea0984e047d3e55c (diff)
- More code cleanup.
- Dead code removal and minor refactoring. - Simplify. Align naming with stl. Fix somed pedantic warnings. - More STL compatability. - Remove ATTR_HOT and ATTR_COLD. Refactored netlist_time. - Fix long standing workaround which would ignore policy of change-only" propagation. - Rewrote for loops to use auto : semantics. - Truthtable cleanup. (nw) - Get rid of nl_math. Remove nl_util.h and moved contents to plib/putil.h. - Fix standalone build. Refactor ptypes.h. [Couriersud]
Diffstat (limited to 'src/lib/netlist/solver/nld_ms_w.h')
-rw-r--r--src/lib/netlist/solver/nld_ms_w.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/netlist/solver/nld_ms_w.h b/src/lib/netlist/solver/nld_ms_w.h
index cd70d82024b..19c84ef80bc 100644
--- a/src/lib/netlist/solver/nld_ms_w.h
+++ b/src/lib/netlist/solver/nld_ms_w.h
@@ -130,7 +130,7 @@ matrix_solver_w_t<m_N, storage_N>::~matrix_solver_w_t()
}
template <unsigned m_N, unsigned storage_N>
-ATTR_COLD void matrix_solver_w_t<m_N, storage_N>::vsetup(analog_net_t::list_t &nets)
+void matrix_solver_w_t<m_N, storage_N>::vsetup(analog_net_t::list_t &nets)
{
if (m_dim < nets.size())
log().fatal("Dimension {1} less than {2}", m_dim, nets.size());
@@ -360,8 +360,8 @@ int matrix_solver_w_t<m_N, storage_N>::solve_non_dynamic(ATTR_UNUSED const bool
{
tmp += A(i,j) * new_V[j];
}
- if (nl_math::abs(tmp-RHS(i)) > 1e-6)
- printf("%s failed on row %d: %f RHS: %f\n", this->name().cstr(), i, nl_math::abs(tmp-RHS(i)), RHS(i));
+ if (std::abs(tmp-RHS(i)) > 1e-6)
+ printf("%s failed on row %d: %f RHS: %f\n", this->name().cstr(), i, std::abs(tmp-RHS(i)), RHS(i));
}
if (newton_raphson)
{