STYLE: use more generic terms allow/deny for selections

This commit is contained in:
Mark Olesen
2020-09-09 10:45:22 +02:00
parent d4cd87830d
commit 1e95af4d57
14 changed files with 57 additions and 58 deletions

View File

@ -76,7 +76,7 @@ bool Foam::functionObjects::ddt2::accept(const word& fieldName) const
{
// check input vs possible result names
// to avoid circular calculations
return !blacklist_.match(fieldName);
return !denyField_.match(fieldName);
}
@ -108,7 +108,7 @@ Foam::functionObjects::ddt2::ddt2
fvMeshFunctionObject(name, runTime, dict),
selectFields_(),
resultName_(word::null),
blacklist_(),
denyField_(),
results_(),
mag_(dict.getOrDefault("mag", false))
{
@ -148,7 +148,7 @@ bool Foam::functionObjects::ddt2::read(const dictionary& dict)
|| checkFormatName(resultName_)
)
{
blacklist_.set
denyField_.set
(
string::quotemeta<regExp>
(
@ -159,7 +159,7 @@ bool Foam::functionObjects::ddt2::read(const dictionary& dict)
return true;
}
blacklist_.clear();
denyField_.clear();
return false;
}

View File

@ -137,7 +137,7 @@ class ddt2
word resultName_;
//- Avoid processing the same field twice
mutable regExp blacklist_;
mutable regExp denyField_;
//- Hashed names of result fields
wordHashSet results_;