Commit b57f140b authored by incardon's avatar incardon

Fixing crashed in is_equal

parent 52434985
......@@ -582,6 +582,14 @@ public:
return false;
for (size_t i = 0 ; i < getNIGhostBox() ; i++)
{
if (getIGhostBox(i) != ig.getIGhostBox(i))
return false;
if (getIGhostBoxProcessor(i) != ig.getIGhostBoxProcessor(i))
return false;
}
for (size_t i = 0 ; i < proc_int_box.size() ; i++)
{
if (getProcessorNIGhost(i) != ig.getProcessorNIGhost(i))
return false;
......@@ -594,13 +602,17 @@ public:
if (getProcessorIGhostSub(i,j) != ig.getProcessorIGhostSub(i,j))
return false;
}
if (getIGhostBox(i) != ig.getIGhostBox(i))
}
for (size_t i = 0 ; i < getNEGhostBox() ; i++)
{
if (getEGhostBox(i) != ig.getEGhostBox(i))
return false;
if (getIGhostBoxProcessor(i) != ig.getIGhostBoxProcessor(i))
if (getEGhostBoxProcessor(i) != ig.getEGhostBoxProcessor(i))
return false;
}
for (size_t i = 0 ; i < getNEGhostBox() ; i++)
for (size_t i = 0 ; i < proc_int_box.size() ; i++)
{
if (getProcessorNEGhost(i) != ig.getProcessorNEGhost(i))
return false;
......@@ -613,10 +625,6 @@ public:
if (getProcessorEGhostSub(i,j) != ig.getProcessorEGhostSub(i,j))
return false;
}
if (getEGhostBox(i) != ig.getEGhostBox(i))
return false;
if (getEGhostBoxProcessor(i) != ig.getEGhostBoxProcessor(i))
return false;
}
}
......
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