From 78418c875c5d883d65befcf084b28e9d5fb0a681 Mon Sep 17 00:00:00 2001
From: Andrew Heather <a.heather@opencfd.co.uk>
Date: Wed, 13 Jun 2018 17:36:34 +0100
Subject: [PATCH] COMP: corrected field construct

---
 .../fvMatrices/solvers/isoAdvection/isoAdvection/isoAdvection.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/finiteVolume/fvMatrices/solvers/isoAdvection/isoAdvection/isoAdvection.C b/src/finiteVolume/fvMatrices/solvers/isoAdvection/isoAdvection/isoAdvection.C
index 1bb244e84aa..003226f6828 100644
--- a/src/finiteVolume/fvMatrices/solvers/isoAdvection/isoAdvection/isoAdvection.C
+++ b/src/finiteVolume/fvMatrices/solvers/isoAdvection/isoAdvection/isoAdvection.C
@@ -479,7 +479,7 @@ void Foam::isoAdvection::limitFluxes()
     // Get time step size
     const scalar dt = mesh_.time().deltaT().value();
 
-    volScalarField alphaNew = alpha1_ - fvc::surfaceIntegrate(dVf_);
+    volScalarField alphaNew(alpha1_ - fvc::surfaceIntegrate(dVf_));
     const scalar aTol = 1.0e-12;          // Note: tolerances
     scalar maxAlphaMinus1 = gMax(alphaNew) - 1;      // max(alphaNew - 1);
     scalar minAlpha = gMin(alphaNew);           // min(alphaNew);
-- 
GitLab