mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Clean-up after latest Foundation integrations
This commit is contained in:
@ -147,17 +147,6 @@ processSameTypeValues
|
||||
break;
|
||||
}
|
||||
case opWeightedSum:
|
||||
{
|
||||
if (weightField.size())
|
||||
{
|
||||
result = sum(weightField*values);
|
||||
}
|
||||
else
|
||||
{
|
||||
result = sum(values);
|
||||
}
|
||||
break;
|
||||
}
|
||||
{
|
||||
if (returnReduce(weightField.empty(), andOp<bool>()))
|
||||
{
|
||||
@ -165,7 +154,7 @@ processSameTypeValues
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp<scalarField> weight = weightingFactor(weightField);
|
||||
tmp<scalarField> weight(weightingFactor(weightField));
|
||||
|
||||
result = gSum(weight*values);
|
||||
}
|
||||
@ -202,7 +191,7 @@ processSameTypeValues
|
||||
}
|
||||
else
|
||||
{
|
||||
const scalarField factor = weightingFactor(weightField);
|
||||
const scalarField factor(weightingFactor(weightField));
|
||||
|
||||
result = gSum(factor*values)/(gSum(factor) + ROOTVSMALL);
|
||||
}
|
||||
@ -217,7 +206,7 @@ processSameTypeValues
|
||||
}
|
||||
case opWeightedAreaAverage:
|
||||
{
|
||||
const scalarField factor = weightingFactor(weightField, Sf);
|
||||
const scalarField factor(weightingFactor(weightField, Sf));
|
||||
|
||||
result = gSum(factor*values)/gSum(factor + ROOTVSMALL);
|
||||
break;
|
||||
@ -231,25 +220,11 @@ processSameTypeValues
|
||||
}
|
||||
case opWeightedAreaIntegrate:
|
||||
{
|
||||
const scalarField factor = weightingFactor(weightField, Sf);
|
||||
const scalarField factor(weightingFactor(weightField, Sf));
|
||||
|
||||
result = gSum(factor*values);
|
||||
break;
|
||||
}
|
||||
case opWeightedAreaIntegrate:
|
||||
{
|
||||
const scalarField magSf(mag(Sf));
|
||||
|
||||
if (weightField.size())
|
||||
{
|
||||
result = sum(weightField*magSf*values);
|
||||
}
|
||||
else
|
||||
{
|
||||
result = sum(magSf*values);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case opMin:
|
||||
{
|
||||
result = gMin(values);
|
||||
|
||||
Reference in New Issue
Block a user