diff options
Diffstat (limited to 'src/lib/netlist/solver/nld_matrix_solver.cpp')
-rw-r--r-- | src/lib/netlist/solver/nld_matrix_solver.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/netlist/solver/nld_matrix_solver.cpp b/src/lib/netlist/solver/nld_matrix_solver.cpp index afcdec647cd..a1bb4f2f88e 100644 --- a/src/lib/netlist/solver/nld_matrix_solver.cpp +++ b/src/lib/netlist/solver/nld_matrix_solver.cpp @@ -397,13 +397,13 @@ namespace solver if (m_params.m_dynamic_ts && has_timestep_devices()) { - m_Q_sync.net().toggle_and_push_to_queue(netlist_time::from_double(m_params.m_min_timestep)); + m_Q_sync.net().toggle_and_push_to_queue(netlist_time::from_fp(m_params.m_min_timestep)); } } void matrix_solver_t::step(const netlist_time &delta) { - const nl_fptype dd = delta.as_double(); + const nl_fptype dd = delta.as_fp<nl_fptype>(); for (auto &d : m_step_devices) d->timestep(dd); } @@ -439,7 +439,7 @@ namespace solver if (this_resched > 1 && !m_Q_sync.net().is_queued()) { log().warning(MW_NEWTON_LOOPS_EXCEEDED_ON_NET_1(this->name())); - m_Q_sync.net().toggle_and_push_to_queue(netlist_time::from_double(m_params.m_nr_recalc_delay)); + m_Q_sync.net().toggle_and_push_to_queue(netlist_time::from_fp(m_params.m_nr_recalc_delay())); } } else @@ -447,7 +447,7 @@ namespace solver this->vsolve_non_dynamic(false); } - const netlist_time next_time_step = compute_next_timestep(delta.as_double()); + const netlist_time next_time_step = compute_next_timestep(delta.as_fp<nl_fptype>()); return next_time_step; } @@ -558,7 +558,7 @@ namespace solver static_cast<nl_fptype>(this->m_stat_newton_raphson) / static_cast<nl_fptype>(this->m_stat_vsolver_calls)); log().verbose(" {1:10} invocations ({2:6.0} Hz) {3:10} gs fails ({4:6.2} %) {5:6.3} average", this->m_stat_calculations, - static_cast<nl_fptype>(this->m_stat_calculations) / this->exec().time().as_double(), + static_cast<nl_fptype>(this->m_stat_calculations) / this->exec().time().as_fp<nl_fptype>(), this->m_iterative_fail, 100.0 * static_cast<nl_fptype>(this->m_iterative_fail) / static_cast<nl_fptype>(this->m_stat_calculations), |