Make explicit intention to do nothing on empty input.

This commit is contained in:
Atgeirr Flø Rasmussen
2012-11-15 08:54:45 +01:00
parent e17d5e6499
commit 2b0e570842

View File

@@ -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());