mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use more generic terms allow/deny for selections
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user