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 {
active.push(mel->getNeighbour(i));
}
if (active.empty()) {
delete mel_info;
return false;
if (macrosVisited.size() == getNumberOfMacros()) {
delete mel_info;
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();
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