From 7857527293a3944cbff437a4205df0d718a9278e Mon Sep 17 00:00:00 2001
From: laurence <laurence>
Date: Mon, 24 Dec 2012 16:23:31 +0000
Subject: [PATCH] COMP: Correct to compile with Clang

---
 .../energyRegionCoupledFvPatchScalarField.C               | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/regionCoupled/derivedFvPatchFields/energyRegionCoupled/energyRegionCoupledFvPatchScalarField.C b/src/regionCoupled/derivedFvPatchFields/energyRegionCoupled/energyRegionCoupledFvPatchScalarField.C
index 820596e022e..c54293f22b2 100644
--- a/src/regionCoupled/derivedFvPatchFields/energyRegionCoupled/energyRegionCoupledFvPatchScalarField.C
+++ b/src/regionCoupled/derivedFvPatchFields/energyRegionCoupled/energyRegionCoupledFvPatchScalarField.C
@@ -348,7 +348,7 @@ void Foam::energyRegionCoupledFvPatchScalarField::evaluate
     label patchi = patch().index();
     const scalarField& pp =  thermoPtr_->p().boundaryField()[patchi];
 
-    const scalarField lWeights = weights();
+    const scalarField lWeights(weights());
 
     scalarField::operator=
     (
@@ -416,8 +416,10 @@ patchNeighbourField() const
         nbrThermoPtr_->T().internalField(), nbrFaceCells
     );
 
-    scalarField intNbrT =
-        regionCoupledPatch_.regionCoupledPatch().interpolate(nbrIntT);
+    scalarField intNbrT
+    (
+        regionCoupledPatch_.regionCoupledPatch().interpolate(nbrIntT)
+    );
 
     label patchi = patch().index();
     const scalarField& pp =  thermoPtr_->p().boundaryField()[patchi];
-- 
GitLab