Commit 0e4b89a6 authored by Thomas Witkowski's avatar Thomas Witkowski

Fixed bubble sort problem in MeshDistributor.

parent 5574b023
......@@ -147,7 +147,8 @@ namespace AMDiS {
bool doNext = false;
do {
for (unsigned int i = 0; i < feSpaces.size() - 1; i++)
doNext = false;
for (unsigned int i = 0; i < feSpaces.size() - 1; i++) {
if (feSpaces[i]->getBasisFcts()->getDegree() >
feSpaces[i + 1]->getBasisFcts()->getDegree()) {
const FiniteElemSpace *tmp = feSpaces[i + 1];
......@@ -155,6 +156,7 @@ namespace AMDiS {
feSpaces[i] = tmp;
doNext = true;
}
}
} while (doNext);
elObjDb.setMesh(feSpaces[0]->getMesh());
......
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