Skip to content
Snippets Groups Projects
Commit 30fd94fa authored by João Isler's avatar João Isler Committed by Chris Cantwell
Browse files

Add variable initialisation to compile with AVX2

parent 9dc8a6dd
No related branches found
No related tags found
No related merge requests found
......@@ -245,7 +245,8 @@ namespace Nektar
// load 1/rho
T oneOrho = 1.0 / inaverg[0]; // load 1x
// get vel, vel^2, sum of vel^2
std::array<T, 3> u, u2;
std::array<T, 3> u = {{0.0, 0.0, 0.0}};
std::array<T, 3> u2 = {{0.0, 0.0, 0.0}};
T u2sum{};
for (unsigned short d = 0; d < nDim; ++d)
{
......
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