mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Also check for unknown face direction
To avoid compiler warnings, we also need to check for the unknown face direction due to change in the FaceDir::DirEnum values in opm-common.
This commit is contained in:
@@ -2851,6 +2851,8 @@ private:
|
||||
case FaceDir::ZPlus:
|
||||
data = &massratebcZ_;
|
||||
break;
|
||||
case FaceDir::Unknown:
|
||||
throw std::runtime_error("Unexpected unknown face direction");
|
||||
}
|
||||
|
||||
const Evaluation rate = bcface.rate;
|
||||
@@ -2885,6 +2887,8 @@ private:
|
||||
case FaceDir::ZPlus:
|
||||
data = &freebcZ_;
|
||||
break;
|
||||
case FaceDir::Unknown:
|
||||
throw std::runtime_error("Unexpected unknown face direction");
|
||||
}
|
||||
|
||||
for (int i = bcface.i1; i <= bcface.i2; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user