From 50a97063b7262279c14289be98beaf868f0f1c25 Mon Sep 17 00:00:00 2001 From: "Bryan W. Weber" Date: Fri, 22 Jan 2016 16:45:07 -0500 Subject: [PATCH] Reduce relative tolerance of state setter in Substance Reduce the relative tolerance from 3.e-8 to 1.e-8. --- src/tpx/Sub.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tpx/Sub.cpp b/src/tpx/Sub.cpp index 002d21ded..6c04d361d 100644 --- a/src/tpx/Sub.cpp +++ b/src/tpx/Sub.cpp @@ -115,14 +115,14 @@ double Substance::Tsat(double p) return tsat; } -// absolute tolerances -static const double TolAbsH = 0.0001; // J/kg -static const double TolAbsU = 0.0001; +// property tolerances +static const double TolAbsH = 1.e-4; // J/kg +static const double TolAbsU = 1.e-4; static const double TolAbsS = 1.e-7; -static const double TolAbsP = 0.000; // Pa +static const double TolAbsP = 0.0; // Pa, this is supposed to be zero static const double TolAbsV = 1.e-8; static const double TolAbsT = 1.e-3; -static const double TolRel = 3.e-8; +static const double TolRel = 1.e-8; void Substance::Set(PropertyPair::type XY, double x0, double y0) {