Commit 024454c8 authored by Mark Olesen's avatar Mark Olesen

Merge branch 'fix_regexp_in_patchnames' into 'develop'

Temporary fix for regexp entries in patchnames

See merge request !5
parents 101a4d03 bd2a5cc9
......@@ -29,7 +29,7 @@ License
#include "IOobjectList.H"
#include "faceSet.H"
#include "demandDrivenData.H"
#include "ListOps.H"
#include "stringListOps.H"
// * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * //
......@@ -268,15 +268,16 @@ Foam::labelList Foam::Module::polyMeshGenFaces::findPatches
const word& patchName
) const
{
const labelList ids = findIndices(patchNames(), patchName);
const labelList patchIDs =
findMatchingStrings(regExp(patchName), patchNames());
if (ids.empty())
if (patchIDs.empty())
{
WarningInFunction
<< "Cannot find any patch names matching " << patchName << endl;
}
return ids;
return patchIDs;
}
......
......@@ -27,7 +27,7 @@ License
#include "pointIOField.H"
#include "IOobjectList.H"
#include "pointSet.H"
#include "ListOps.H"
#include "stringListOps.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -89,17 +89,18 @@ Foam::labelList Foam::Module::triSurfFacets::findPatches
const word& patchName
) const
{
const labelList ids = findIndices(patchNames(), patchName);
const labelList patchIDs =
findMatchingStrings(regExp(patchName), patchNames());
# ifdef DEBUGtriSurf
if (ids.empty())
if (patchIDs.empty())
{
WarningInFunction
<< "Cannot find any patch names matching " << patchName << endl;
}
# endif
return ids;
return patchIDs;
}
......
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