Skip to content
Snippets Groups Projects
Commit f44c8e7d authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MaL] KelvinVector; Resize the result vector.

parent 5eb51538
No related branches found
No related tags found
No related merge requests found
......@@ -178,10 +178,12 @@ symmetricTensorToKelvinVector(Eigen::MatrixBase<Derived> const& v)
result;
if (v.rows() == 4)
{
result.resize(4, 1);
result << v[0], v[1], v[2], v[3] * std::sqrt(2.);
}
else if (v.rows() == 6)
{
result.resize(6, 1);
result << v[0], v[1], v[2], v[3] * std::sqrt(2.), v[4] * std::sqrt(2.),
v[5] * std::sqrt(2.);
}
......
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