Skip to content
Snippets Groups Projects
Commit 259b7820 authored by Gregor Weiss's avatar Gregor Weiss Committed by Sergey Lesnik
Browse files

BUG: compiles and runs.

parent 33fb730f
Branches
No related merge requests found
......@@ -157,10 +157,10 @@ template<typename Container, typename IndexContainer>
void Foam::applyPermutation(Container& data, const IndexContainer& permutation)
{
Container output(data.size());
Foam::label size = static_cast<Foam::label>(indices.size());
Foam::label size = static_cast<Foam::label>(permutation.size());
for (Foam::label rootIndex = 0; rootIndex<size; rootIndex++)
{
output[rootIndex] = std::move(data[indices[rootIndex]]);
output[rootIndex] = std::move(data[permutation[rootIndex]]);
}
std::move
(
......
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