mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: provide explicit literal/regex for dictionary findEntry
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
||||
@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user