Skip to content
Snippets Groups Projects
Commit bf56b06b authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: add ZoneMesh findIndex with wordRes matcher

parent 1036cf96
No related merge requests found
......@@ -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
......
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