mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
fieldAverageItem: Updated
Resolves bug-report https://bugs.openfoam.org/view.php?id=3130
This commit is contained in:
@ -57,6 +57,12 @@ OpenFOAM | ThirdParty)
|
||||
Gcc61)
|
||||
gcc_version=gcc-6.1.0
|
||||
;;
|
||||
Gcc72)
|
||||
gcc_version=gcc-7.2.0
|
||||
;;
|
||||
Gcc73)
|
||||
gcc_version=gcc-7.3.0
|
||||
;;
|
||||
Gcc81)
|
||||
gcc_version=gcc-8.1.0
|
||||
;;
|
||||
|
||||
@ -60,7 +60,7 @@ Foam::functionObjects::fieldAverageItem::fieldAverageItem()
|
||||
meanFieldName_("unknown"),
|
||||
prime2Mean_(0),
|
||||
prime2MeanFieldName_("unknown"),
|
||||
base_(ITER),
|
||||
base_(baseType::iter),
|
||||
window_(-1.0),
|
||||
windowName_("")
|
||||
{}
|
||||
|
||||
@ -89,10 +89,10 @@ public:
|
||||
static const word EXT_PRIME2MEAN;
|
||||
|
||||
//- Enumeration defining the averaging base type
|
||||
enum baseType
|
||||
enum class baseType
|
||||
{
|
||||
ITER,
|
||||
TIME
|
||||
iter,
|
||||
time
|
||||
};
|
||||
|
||||
|
||||
@ -198,16 +198,16 @@ public:
|
||||
return baseTypeNames_[base_];
|
||||
}
|
||||
|
||||
//- Return true if base is ITER
|
||||
//- Return true if base is iter
|
||||
Switch iterBase() const
|
||||
{
|
||||
return base_ == ITER;
|
||||
return base_ == baseType::iter;
|
||||
}
|
||||
|
||||
//- Return true if base is time
|
||||
Switch timeBase() const
|
||||
{
|
||||
return base_ == TIME;
|
||||
return base_ == baseType::time;
|
||||
}
|
||||
|
||||
scalar window() const
|
||||
|
||||
Reference in New Issue
Block a user