Commit c43bfa8c authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

findElInfo modified to allow non-connected domains

parent ff13277f
...@@ -722,8 +722,20 @@ namespace AMDiS { ...@@ -722,8 +722,20 @@ namespace AMDiS {
active.push(mel->getNeighbour(i)); active.push(mel->getNeighbour(i));
} }
if (active.empty()) { if (active.empty()) {
if (macrosVisited.size() == getNumberOfMacros()) {
delete mel_info; delete mel_info;
return false; return false;
} else {
deque<MacroElement*>::iterator it;
bool found = false;
for (it = firstMacroElement(); it != endOfMacroElements(); it++) {
if (!macrosVisited.count(it->getIndex())) {
active.push(*it);
found = true;
}
}
TEST_EXIT(found)("No macro-element found that was not visited yet!\n");
}
} }
mel = active.top(); mel = active.top();
active.pop(); active.pop();
......
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