mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Rename dirId() to faceDirFromDirId()
This commit is contained in:
parent
dc6141af13
commit
38add2ed66
@ -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);
|
||||
|
||||
|
@ -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};
|
||||
}
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user