Skip to content
Snippets Groups Projects
Commit 0ecfc7de authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[BoxAssembler]

Replace a continue with else, this code should be a bit easier to read.
(reviewed by bernd)


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@9450 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 2ac78463
No related branches found
No related tags found
No related merge requests found
...@@ -574,18 +574,19 @@ private: ...@@ -574,18 +574,19 @@ private:
int globalI = vertexMapper_().map(*eIt, i, dim); int globalI = vertexMapper_().map(*eIt, i, dim);
neighbors[globalI].insert(globalI); neighbors[globalI].insert(globalI);
} }
continue;
} }
else
// loop over all element vertices {
for (int i = 0; i < numVerticesLocal - 1; ++i) { // loop over all element vertices
int globalI = vertexMapper_().map(*eIt, i, dim); for (int i = 0; i < numVerticesLocal - 1; ++i) {
for (int j = i + 1; j < numVerticesLocal; ++j) { int globalI = vertexMapper_().map(*eIt, i, dim);
int globalJ = vertexMapper_().map(*eIt, j, dim); for (int j = i + 1; j < numVerticesLocal; ++j) {
// make sure that vertex j is in the neighbor set int globalJ = vertexMapper_().map(*eIt, j, dim);
// of vertex i and vice-versa // make sure that vertex j is in the neighbor set
neighbors[globalI].insert(globalJ); // of vertex i and vice-versa
neighbors[globalJ].insert(globalI); neighbors[globalI].insert(globalJ);
neighbors[globalJ].insert(globalI);
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment