mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-11 15:15:42 -06:00
fix boundary face index in parallel
This commit is contained in:
parent
2f4131232c
commit
02b978b523
@ -83,7 +83,7 @@ public:
|
||||
|
||||
++intersectionIt_;
|
||||
// iterate to the next boundary intersection
|
||||
while (intersectionIt_ != iend && !intersectionIt_->boundary()) {
|
||||
while (intersectionIt_ != iend && intersectionIt_->neighbor()) {
|
||||
++intersectionIt_;
|
||||
}
|
||||
}
|
||||
|
@ -426,7 +426,7 @@ protected:
|
||||
|
||||
BoundaryContext boundaryCtx(elemCtx);
|
||||
// move the iterator to the first boundary
|
||||
if(!boundaryCtx.intersection(0).boundary())
|
||||
if(boundaryCtx.intersection(0).neighbor())
|
||||
boundaryCtx.increment();
|
||||
|
||||
// evaluate the boundary for all boundary faces of the current context
|
||||
@ -434,6 +434,9 @@ protected:
|
||||
for (unsigned faceIdx = 0; faceIdx < numBoundaryFaces; ++faceIdx, boundaryCtx.increment()) {
|
||||
// add the residual of all vertices of the boundary
|
||||
// segment
|
||||
if(!boundaryCtx.intersection(faceIdx).boundary())
|
||||
continue;
|
||||
|
||||
evalBoundarySegment_(residual,
|
||||
boundaryCtx,
|
||||
faceIdx,
|
||||
|
Loading…
Reference in New Issue
Block a user