ENH: provide explicit literal/regex for dictionary findEntry

This commit is contained in:
Mark Olesen
2023-02-22 15:33:25 +01:00
parent 7246b49eac
commit f3d447579a
6 changed files with 19 additions and 24 deletions

View File

@ -292,7 +292,7 @@ void Foam::sampledSets::initDict(const dictionary& dict, const bool initial)
writers_.clear();
}
const entry* eptr = dict.findEntry("sets");
const entry* eptr = dict.findEntry("sets", keyType::LITERAL);
if (eptr && eptr->isDict())
{
@ -529,7 +529,7 @@ bool Foam::sampledSets::read(const dictionary& dict)
samplePointScheme_ =
dict.getOrDefault<word>("interpolationScheme", "cellPoint");
const entry* eptr = dict.findEntry("sets");
const entry* eptr = dict.findEntry("sets", keyType::LITERAL);
if (eptr)
{

View File

@ -297,7 +297,7 @@ bool Foam::sampledSurfaces::read(const dictionary& dict)
sampleNodeScheme_ =
dict.getOrDefault<word>("interpolationScheme", "cellPoint");
const entry* eptr = dict.findEntry("surfaces");
const entry* eptr = dict.findEntry("surfaces", keyType::LITERAL);
// Surface writer type and format options
const word writerType =