From e215f19926038940914c1cf4308ae63494aa6ae9 Mon Sep 17 00:00:00 2001
From: Armin Wehrfritz <armin.wehrfritz@aalto.fi>
Date: Wed, 14 Aug 2013 12:21:16 +0300
Subject: [PATCH] Revise check for crit mass

---
 .../PhaseChangeModel/LiquidEvaporationBoil/LiquidEvaporationBoil.C   |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lagrangian/intermediate/submodels/Reacting/PhaseChangeModel/LiquidEvaporationBoil/LiquidEvaporationBoil.C b/src/lagrangian/intermediate/submodels/Reacting/PhaseChangeModel/LiquidEvaporationBoil/LiquidEvaporationBoil.C
index d78d6b1..adde074 100644
--- a/src/lagrangian/intermediate/submodels/Reacting/PhaseChangeModel/LiquidEvaporationBoil/LiquidEvaporationBoil.C
+++ b/src/lagrangian/intermediate/submodels/Reacting/PhaseChangeModel/LiquidEvaporationBoil/LiquidEvaporationBoil.C
@@ -155,7 +155,7 @@ void Foam::LiquidEvaporationBoil<CloudType>::calculate
     const scalarField X(liquids_.X(Yl));
 
     // immediately evaporate mass that has reached critical condition
-    if (mag(T - liquids_.Tc(X)) < SMALL)
+    if ((liquids_.Tc(X) - T) < SMALL)
     {
         if (debug)
         {
-- 
1.7.10.4

