mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: isLiteral() method for keyType and wordRe
- same as !isPattern(), but can be more readable. - add wordRe enum state 'UNKNOWN', which has the identical value as 'DETECT' but used for a return value.
This commit is contained in:
@ -440,7 +440,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
const wordRes patchNames(args.getList<wordRe>("patches"));
|
||||
|
||||
if (patchNames.size() == 1 && !patchNames.first().isPattern())
|
||||
if (patchNames.size() == 1 && patchNames.first().isLiteral())
|
||||
{
|
||||
exposedPatchIDs.first() =
|
||||
getExposedPatchId(mesh, patchNames.first());
|
||||
|
||||
Reference in New Issue
Block a user