Skip to content
Snippets Groups Projects
Commit a583e3b4 authored by Oliver Sander's avatar Oliver Sander
Browse files

[cleanup] Replace hand-written loop by std::copy

parent 20fd8e4d
No related branches found
No related tags found
No related merge requests found
......@@ -976,10 +976,7 @@ namespace Dune {
Mat.r[i].set(0,nullptr,nullptr);
// initialize the j array for row i from pattern
size_type k=0;
size_type *j = Mat.r[i].getindexptr();
for (typename PatternType::const_iterator it=pattern.begin(); it!=pattern.end(); ++it)
j[k++] = *it;
std::copy(pattern.cbegin(), pattern.cend(), Mat.r[i].getindexptr());
// now go to next row
i++;
......
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