From 2f9111a50a3e0f9b72353b1455a28ad3409208fa Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Mon, 12 Aug 2013 12:02:56 +0100
Subject: [PATCH] BUG: renumberMesh: conversion scalar*label -> label

---
 .../mesh/manipulation/renumberMesh/renumberMesh.C         | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C b/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C
index af968f8120f..6a8ae4a9474 100644
--- a/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C
+++ b/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C
@@ -136,7 +136,13 @@ void getBand
     }
 
     bandwidth = max(cellBandwidth);
-    profile = sum(1.0*cellBandwidth);
+
+    // Do not use field algebra because of conversion label to scalar
+    profile = 0.0;
+    forAll(cellBandwidth, cellI)
+    {
+        profile += 1.0*cellBandwidth[cellI];
+    }
 
     sumSqrIntersect = 0.0;
     if (calculateIntersect)
-- 
GitLab