Make explicit intention to do nothing on empty input.
This commit is contained in:
@@ -312,6 +312,9 @@ namespace Opm {
|
||||
const std::vector<int>& hf_faces,
|
||||
const std::vector<int>& nb_faces)
|
||||
{
|
||||
if (p_faces.empty()) {
|
||||
return;
|
||||
}
|
||||
assert (p_faces.size() == hf_faces.size());
|
||||
assert (hf_faces.size() == nb_faces.size());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user