Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
bf56b06b
Commit
bf56b06b
authored
Aug 06, 2018
by
Mark OLESEN
Browse files
ENH: add ZoneMesh findIndex with wordRes matcher
parent
1036cf96
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/polyMesh/zones/ZoneMesh/ZoneMesh.C
View file @
bf56b06b
...
...
@@ -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
(
...
...
src/OpenFOAM/meshes/polyMesh/zones/ZoneMesh/ZoneMesh.H
View file @
bf56b06b
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment