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:
Mark Olesen
2018-10-07 17:28:11 +02:00
parent 87cc19de82
commit 8d6f83e666
10 changed files with 43 additions and 26 deletions

View File

@ -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());