Skip to content
Snippets Groups Projects
Commit 317f0cb7 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MaL] Rename variables

 - Avoid shadowing,

 - Unify declaration/definition name.
parent 4895a54c
No related branches found
No related tags found
No related merge requests found
......@@ -110,14 +110,14 @@ void addToMatrix(PETScMatrix& m, std::initializer_list<double> values)
namespace MathLib
{
void setVector(EigenVector& v_, std::initializer_list<double> values)
void setVector(EigenVector& v, std::initializer_list<double> values)
{
auto& v(v_.getRawVector());
auto& w = v.getRawVector();
assert((std::size_t)v.size() == values.size());
auto it = values.begin();
for (std::size_t i = 0; i < values.size(); ++i)
{
v[i] = *(it++);
w[i] = *(it++);
}
}
......
......@@ -168,8 +168,8 @@ struct AndersonBjorck
{
static double get_m(const double /*fa*/, const double fb, const double fc)
{
const double f = 1.0 - fc / fb;
return (f >= 0.0) ? f : 0.5;
const double v = 1.0 - fc / fb;
return (v >= 0.0) ? v : 0.5;
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment