Commit 5a597918 authored by Douglas Serson's avatar Douglas Serson
Browse files

Fix uninitialized variable

parent 5b60b35b
......@@ -696,13 +696,13 @@ namespace Nektar
*(exp3D->GetGeom3D()->GetEdge(i)->GetVertex(1))));
}
NekDouble p;
int p = 0;
for(int i = 0; i < 3; ++i)
{
p = max(p,exp3D->GetBasisNumModes(i)-1.0);
p = max(p,exp3D->GetBasisNumModes(i)-1);
}
diffcoeff[e] *= h/p;
diffcoeff[e] *= h/p;
}
}
else
......@@ -719,13 +719,13 @@ namespace Nektar
*(exp2D->GetGeom2D()->GetEdge(i)->GetVertex(1))));
}
NekDouble p;
int p = 0;
for(int i = 0; i < 2; ++i)
{
p = max(p,exp2D->GetBasisNumModes(i)-1.0);
p = max(p,exp2D->GetBasisNumModes(i)-1);
}
diffcoeff[e] *= h/p;
diffcoeff[e] *= h/p;
}
}
}
......
Markdown is supported
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