ENH: GeometricBoundaryField: short-circuit patch rgoups test

This commit is contained in:
mattijs
2013-07-04 17:12:52 +01:00
parent 3c6ef22895
commit 5125f417ff

View File

@ -50,6 +50,8 @@ readField
}
label nUnset = this->size();
// 1. Handle explicit patch names. Note that there can be only one explicit
// patch name since is key of dictionary.
forAllConstIter(dictionary, dict, iter)
@ -70,10 +72,16 @@ readField
iter().dict()
)
);
nUnset--;
}
}
}
if (nUnset == 0)
{
return;
}
// 2. Patch-groups. (using non-wild card entries of dictionaries)
// (patchnames already matched above)