Commit 4b7010f8 authored by Spencer Sherwin's avatar Spencer Sherwin
Browse files

Possible mistake for variable p in that we were using P instead of Q to swap edges

parent a89c8db2
......@@ -1238,10 +1238,10 @@ namespace Nektar
// direction reversed); swap edge modes.
if ((int)faceOrient == 7)
{
swap(maparray[0], maparray[P]);
for (i = 1; i < P-1; ++i)
swap(maparray[0], maparray[Q]);
for (i = 1; i < Q-1; ++i)
{
swap(maparray[i+1], maparray[P+i]);
swap(maparray[i+1], maparray[Q+i]);
}
}
}
......@@ -1782,7 +1782,7 @@ namespace Nektar
{
for (q = 0; q <= Q; ++q)
{
for (r = 0; r <= R-p; ++r)
for (r = 0; r <= R-p; ++r)
{
maparray[idx++] = GetMode(p,q,r);
}
......
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