diff options
Diffstat (limited to 'src/lib/netlist/solver/nld_ms_direct_lu.h')
-rw-r--r-- | src/lib/netlist/solver/nld_ms_direct_lu.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/netlist/solver/nld_ms_direct_lu.h b/src/lib/netlist/solver/nld_ms_direct_lu.h index b45e23d42ec..47bb95c2855 100644 --- a/src/lib/netlist/solver/nld_ms_direct_lu.h +++ b/src/lib/netlist/solver/nld_ms_direct_lu.h @@ -189,8 +189,8 @@ nl_double matrix_solver_direct_t<m_N, storage_N>::compute_next_timestep() n->m_h_n_m_1 = hn; n->m_DD_n_m_1 = DD_n; - if (nl_math::abs(DD2) > NL_FCONST(1e-30)) // avoid div-by-zero - new_net_timestep = nl_math::sqrt(m_params.m_lte / nl_math::abs(NL_FCONST(0.5)*DD2)); + if (std::abs(DD2) > NL_FCONST(1e-30)) // avoid div-by-zero + new_net_timestep = std::sqrt(m_params.m_lte / std::abs(NL_FCONST(0.5)*DD2)); else new_net_timestep = m_params.m_max_timestep; @@ -206,7 +206,7 @@ nl_double matrix_solver_direct_t<m_N, storage_N>::compute_next_timestep() } template <unsigned m_N, unsigned storage_N> -ATTR_COLD void matrix_solver_direct_t<m_N, storage_N>::add_term(int k, terminal_t *term) +void matrix_solver_direct_t<m_N, storage_N>::add_term(int k, terminal_t *term) { if (term->m_otherterm->net().isRailNet()) { @@ -230,7 +230,7 @@ ATTR_COLD void matrix_solver_direct_t<m_N, storage_N>::add_term(int k, terminal_ template <unsigned m_N, unsigned storage_N> -ATTR_COLD void matrix_solver_direct_t<m_N, storage_N>::vsetup(analog_net_t::list_t &nets) +void matrix_solver_direct_t<m_N, storage_N>::vsetup(analog_net_t::list_t &nets) { if (m_dim < nets.size()) netlist().error("Dimension {1} less than {2}", m_dim,nets.size()); @@ -550,7 +550,7 @@ nl_double matrix_solver_direct_t<m_N, storage_N>::delta( const unsigned iN = this->N(); nl_double cerr = 0; for (unsigned i = 0; i < iN; i++) - cerr = std::fmax(cerr, nl_math::abs(V[i] - this->m_nets[i]->m_cur_Analog)); + cerr = std::fmax(cerr, std::abs(V[i] - this->m_nets[i]->m_cur_Analog)); return cerr; } |