From ffe47674ef6651a74d247172e93e714dc832696c Mon Sep 17 00:00:00 2001 From: Dave Goodwin Date: Sun, 8 Jun 2003 14:51:29 +0000 Subject: [PATCH] *** empty log message *** --- Cantera/src/oneD/refine.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cantera/src/oneD/refine.cpp b/Cantera/src/oneD/refine.cpp index 4362e5bde..d95ff486f 100644 --- a/Cantera/src/oneD/refine.cpp +++ b/Cantera/src/oneD/refine.cpp @@ -108,8 +108,8 @@ namespace Cantera { smax = *max_element(s.begin(), s.end()); // max absolute values of v and s - aa = fmaxx(abs(vmax), abs(vmin)); - ss = fmaxx(abs(smax), abs(smin)); + aa = fmaxx(fabs(vmax), fabs(vmin)); + ss = fmaxx(fabs(smax), fabs(smin)); // refine based on component i only if the range of v is // greater than a fraction 'min_range' of max |v|. This @@ -127,7 +127,7 @@ namespace Cantera { if (r > 1.0) { m_loc[j] = 1; m_c[name] = 1; - if (m_loc.size() + n > m_npmax) goto done; + if (int(m_loc.size()) + n > m_npmax) goto done; } if (r >= 0.0) { m_keep[j] = 1; @@ -153,7 +153,7 @@ namespace Cantera { m_c[name] = 1; m_loc[j] = 1; m_loc[j+1] = 1; - if (m_loc.size() + n > m_npmax) goto done; + if (int(m_loc.size()) + n > m_npmax) goto done; } if (r >= 0.0) { m_keep[j+1] = 1;