Commit c6415d1c authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[mpfa][globalfvgeombase] initialize nIdx to avoid compiler warning

parent 90d9de62
......@@ -246,7 +246,9 @@ public:
bool boundary = intersection.boundary();
// determine the outside volvar idx
IndexType nIdx;
// we initialize nIdx so that the compiler does not complain in overlap elements in parallel
// nIdx will not be used in this case anyway (see continue call below)
IndexType nIdx = eIdx;
if (intersection.neighbor())
nIdx = problem.elementMapper().index(intersection.outside());
else if (boundary)
......@@ -468,7 +470,9 @@ public:
bool neighbor = intersection.neighbor();
// determine the outside volvar idx
IndexType nIdx;
// we initialize nIdx so that the compiler does not complain in overlap elements in parallel
// nIdx will not be used in this case anyway (see continue call below)
IndexType nIdx = eIdx;
if (neighbor)
nIdx = problem.elementMapper().index(intersection.outside());
else if (boundary)
......
Supports Markdown
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