ENH: Clean-up after latest Foundation integrations

This commit is contained in:
Andrew Heather
2017-03-27 14:34:01 +01:00
parent dcb1a95e35
commit b708c23cfc
17 changed files with 433 additions and 393 deletions

View File

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