Commit 65d6d1da authored by Fabian's avatar Fabian
Browse files

Removed faulty bug fix with std::move in assembling local matrices for example 3

parent f6ac8e7d
......@@ -63,8 +63,8 @@ namespace lagrange {
result.setConstant(elemArea/12.);
result += result.diagonal().asDiagonal();
// Return result by value (std::move() mustn't be used due to missing alignment)
return result;
// Return result
return std::move(result);
}
}; // end struct LocMassMatIso
......@@ -135,8 +135,8 @@ namespace lagrange {
const auto b_i = funcEval.template block<size, 1>(0, i);
result += coeff(i) * b_i * b_i.transpose();
}
// Return result by value (std::move() mustn't be used due to missing alignment)
return result;
// Return result
return std::move(result);
}
}; // end struct LocMassMatIso
......@@ -180,8 +180,8 @@ namespace lagrange {
matrix_t<3,3> result;
result = grads.transpose()*grads/(4.*elemArea);
// Return result by value (std::move() mustn't be used due to missing alignment)
return result;
// Return result
return std::move(result);
}
}; // end struct LocStiffMatIso
......@@ -257,8 +257,8 @@ namespace lagrange {
// Add to result
result += coeff(i) * g_i * g_i.transpose();
}
// Return result by value (std::move() mustn't be used due to missing alignment)
return result;
// Return result
return std::move(result);
}
}; // end struct LocStiffMatIso
......
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