diff --git a/applications/utilities/postProcessing/miscellaneous/postChannel/channelIndexTemplates.C b/applications/utilities/postProcessing/miscellaneous/postChannel/channelIndexTemplates.C index 9fc8ff0360..6f7e548c70 100644 --- a/applications/utilities/postProcessing/miscellaneous/postChannel/channelIndexTemplates.C +++ b/applications/utilities/postProcessing/miscellaneous/postChannel/channelIndexTemplates.C @@ -54,9 +54,11 @@ Foam::Field Foam::channelIndex::collapse ) const { // Average and order + const Field summedField(regionSum(cellField)); + Field regionField ( - regionSum(cellField) + summedField / regionCount_, sortMap_ );