Commit 7df3739e authored by Felix Gruber's avatar Felix Gruber

[cleanup] replace std::copy with std::copy_n

That makes the purpose of this line much more obvious.
parent aaf43fda
Pipeline #14751 passed with stage
in 25 minutes and 29 seconds
......@@ -13,6 +13,7 @@
#include <dune/functions/gridfunctions/discreteglobalbasisfunction.hh>
#include <algorithm>
#include <string>
#include <type_traits>
......@@ -78,8 +79,7 @@ public:
{
VectorType u(feBasis.size());
assert(x.size() >= feBasis.size()+spaceOffset);
std::copy(x.begin()+spaceOffset, x.begin()+spaceOffset+feBasis.size(),
u.begin());
std::copy_n(x.begin()+spaceOffset, feBasis.size(), u.begin());
plot(functionname, u, feBasis, subsampling);
}
......
Markdown is supported
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