Use NNC support from CpGrid.

This commit is contained in:
Atgeirr Flø Rasmussen 2019-01-28 13:09:19 +01:00
parent 51b24d33d5
commit d087d7c41b
2 changed files with 10 additions and 1 deletions

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

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;