Commit bf56b06b authored by Mark Olesen's avatar Mark Olesen
Browse files

ENH: add ZoneMesh findIndex with wordRes matcher

parent 1036cf96
......@@ -467,6 +467,16 @@ Foam::label Foam::ZoneMesh<ZoneType, MeshType>::findIndex
}
template<class ZoneType, class MeshType>
Foam::label Foam::ZoneMesh<ZoneType, MeshType>::findIndex
(
const wordRes& matcher
) const
{
return (matcher.empty() ? -1 : findIndexImpl(*this, matcher));
}
template<class ZoneType, class MeshType>
Foam::label Foam::ZoneMesh<ZoneType, MeshType>::findZoneID
(
......
......@@ -189,13 +189,6 @@ public:
wordList sortedNames(const wordRes& matcher) const;
//- Return zone index for the first match, return -1 if not found
label findIndex(const keyType& key) const;
//- Find zone index given a name, return -1 if not found
label findZoneID(const word& zoneName) const;
//- Return zone indices for all matches
labelList indices(const keyType& key) const;
......@@ -203,6 +196,17 @@ public:
labelList indices(const wordRes& matcher) const;
//- Return zone index for the first match, return -1 if not found
label findIndex(const keyType& key) const;
//- Return zone index for the first match, return -1 if not found
label findIndex(const wordRes& matcher) const;
//- Find zone index given a name, return -1 if not found
label findZoneID(const word& zoneName) const;
//- Return all elements (cells, faces, points) contained in the
//- listed zones.
// The bitSet is empty (zero-size) if there are no elements matched
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment