summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/solver/nld_ms_gmres.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/solver/nld_ms_gmres.h')
-rw-r--r--src/lib/netlist/solver/nld_ms_gmres.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/netlist/solver/nld_ms_gmres.h b/src/lib/netlist/solver/nld_ms_gmres.h
index dcb3726f5f2..e8963578452 100644
--- a/src/lib/netlist/solver/nld_ms_gmres.h
+++ b/src/lib/netlist/solver/nld_ms_gmres.h
@@ -117,11 +117,10 @@ namespace devices
this->m_new_V[k] = this->m_nets[k]->Q_Analog();
}
-
const float_type accuracy = this->m_params.m_accuracy;
- const std::size_t iter = std::max(1u, this->m_params.m_gs_loops);
- std::size_t gsl = m_gmres.solve(m_ops, this->m_new_V, RHS, iter, accuracy);
+ auto iter = std::max(plib::constants<std::size_t>::one(), this->m_params.m_gs_loops);
+ auto gsl = m_gmres.solve(m_ops, this->m_new_V, RHS, iter, accuracy);
this->m_iterative_total += gsl;
this->m_stat_calculations++;