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