Merge pull request #684 from blattms/fixes-missing-return-value-in-wellsmanager
Fixes missing return value in non-void function of WellsManager.
This commit is contained in:
commit
d26363db52
@ -188,6 +188,11 @@ namespace WellsManagerDetail
|
||||
case Opm::CompletionDirection::DirectionEnum::Z:
|
||||
return permutation {{ idx_t(0), idx_t(1), idx_t(2) }};
|
||||
}
|
||||
// All enum values should be handled above. Therefore
|
||||
// we should never reach this one. Anyway for the sake
|
||||
// of reduced warnings we throw an exception.
|
||||
throw std::invalid_argument("unhandled enum value");
|
||||
|
||||
}
|
||||
|
||||
// Permute (diagonal) permeability components according to
|
||||
|
Loading…
Reference in New Issue
Block a user