Commit 710d4f2c authored by Douglas Serson's avatar Douglas Serson
Browse files

Fix small bug with MultiLevelStaticCond using periodic boundary conditions

parent f43d3276
......@@ -498,7 +498,8 @@ namespace Nektar
// we find it, set as Dirichlet with the vertex id gId.
if (pIt->first == meshVertId)
{
graph[0][meshVertId] = gId < 0 ? graphVertId++ : gId;
gId = gId < 0 ? graphVertId++ : gId;
graph[0][meshVertId] = gId;
for (i = 0; i < pIt->second.size(); ++i)
{
......@@ -522,7 +523,8 @@ namespace Nektar
if (found)
{
graph[0][pIt->first] = gId < 0 ? graphVertId++ : gId;
gId = gId < 0 ? graphVertId++ : gId;
graph[0][pIt->first] = gId;
for (i = 0; i < pIt->second.size(); ++i)
{
......
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