Use NNC support from CpGrid.

This commit is contained in:
Atgeirr Flø Rasmussen committed 2019-02-07 12:00:49 +01:00
1 parent 51b24d33d5
commit d087d7c41b
2 files changed
+10 -1

No files matched your search

+2 -1
View File
@@ -253,7 +253,8 @@ protected:
/*isPeriodic=*/false,
/*flipNormals=*/false,
/*clipZ=*/false,
porv);
porv,
this->eclState().getInputNNC());
// we use separate grid objects: one for the calculation of the initial condition
// via EQUIL and one for the actual simulation. The reason is that the EQUIL code
+8
View File
@@ -275,6 +275,14 @@ public:
unsigned insideFaceIdx = intersection.indexInInside();
unsigned outsideFaceIdx = intersection.indexInOutside();
if (insideFaceIdx == -1) {
// NNC. Set zero transmissibility, as it will be
// *added to* by applyNncToGridTrans_() later.
assert(outsideFaceIdx == -1);
trans_[isId_(elemIdx, outsideElemIdx)] = 0.0;
continue;
}
DimVector faceCenterInside;
DimVector faceCenterOutside;
DimVector faceAreaNormal;