Commit 0101e5a9 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[newton][varsbackend] remove makeDofVector()

all implementation rely on the copy constructor, anyway. In case support
for some solution vector type that is not copy constructible is required
at one point, such logic can be reintroduced.
parent 21b4c820
......@@ -573,7 +573,7 @@ public:
else
{
auto uCurrentIter = Backend::makeDofVector(uLastIter);
auto uCurrentIter = uLastIter;
uCurrentIter -= deltaU;
solutionChanged_(vars, uCurrentIter);
......@@ -972,8 +972,8 @@ private:
newtonBegin(vars);
// the given solution is the initial guess
auto uLastIter = Backend::makeDofVector(Backend::getDofVector(vars));
auto deltaU = Backend::makeDofVector(Backend::getDofVector(vars));
auto uLastIter = Backend::getDofVector(vars);
auto deltaU = Backend::getDofVector(vars);
// setup timers
Dune::Timer assembleTimer(false);
......@@ -1140,7 +1140,7 @@ private:
while (true)
{
auto uCurrentIter = Backend::makeDofVector(deltaU);
auto uCurrentIter = deltaU;
uCurrentIter *= -lambda;
uCurrentIter += uLastIter;
solutionChanged_(vars, uCurrentIter);
......
......@@ -64,9 +64,6 @@ public:
static std::size_t size(const DofVector& d)
{ return 1; }
static DofVector makeDofVector(const DofVector& d)
{ return d; }
static DofVector makeZeroDofVector(std::size_t size)
{ return 0.0; }
};
......@@ -85,9 +82,6 @@ public:
static std::size_t size(const DofVector& d)
{ return d.size(); }
static DofVector makeDofVector(const DofVector& d)
{ return d; }
static DofVector makeZeroDofVector(std::size_t size)
{ DofVector d; d.resize(size); return d; }
};
......@@ -117,9 +111,6 @@ public:
return result;
}
static DofVector makeDofVector(const DofVector& d)
{ return d; }
static DofVector makeZeroDofVector(const VectorSizeInfo& size)
{
DofVector result;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment