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:
Håkon Hægland
2022-09-16 09:07:25 +02:00
parent 9ed974fda3
commit cbdec23e50

View File

@@ -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) {