Rename dirId() to faceDirFromDirId()

This commit is contained in:
Håkon Hægland 2022-09-16 09:22:17 +02:00
parent dc6141af13
commit 38add2ed66
3 changed files with 11 additions and 3 deletions

View File

@ -271,7 +271,7 @@ public:
const auto& materialLawManager = problem.materialLawManager();
FaceDir::DirEnum facedir = FaceDir::DirEnum::Unknown; // Use an arbitrary
if (materialLawManager->hasDirectionalRelperms()) {
facedir = scvf.dirId();
facedir = scvf.faceDirFromDirId();
}
Scalar thpres = problem.thresholdPressure(globalIndexIn, globalIndexEx);

View File

@ -337,7 +337,7 @@ private:
const double area = scvf.area();
FaceDirection dirId = FaceDirection::Unknown;
if (materialLawManager->hasDirectionalRelperms()) {
dirId = scvf.dirId();
dirId = scvf.faceDirFromDirId();
}
loc_nbinfo[dofIdx - 1] = NeighborInfo{neighborIdx, trans, area, dirId};
}

View File

@ -212,7 +212,15 @@ public:
/*!
* \brief Returns the direction of the face
*/
FaceDir::DirEnum dirId() const
int dirId() const
{
return dirId_;
}
/*!
* \brief Returns the direction of the face
*/
FaceDir::DirEnum faceDirFromDirId() const
{
if (dirId_ == -1) {
OPM_THROW(std::runtime_error, "NNC faces does not have a face id");