diff --git a/test_problems/cathermo/testIAPWSPres/output_blessed.txt b/test_problems/cathermo/testIAPWSPres/output_blessed.txt index 87a3427f3..5b09f544b 100644 --- a/test_problems/cathermo/testIAPWSPres/output_blessed.txt +++ b/test_problems/cathermo/testIAPWSPres/output_blessed.txt @@ -1,8 +1,8 @@ pres = 10107 psat(273.16) = 611.655 dens (liquid) = 999.793 kg m-3 -intEng (liquid) ~= 0.0 J/kmol (less than fabs(5.0E-7)) -S (liquid) ~= 0.0 J/kmolK (less than fabs(1.0E-9)) +intEng (liquid) = 4.77857e-09 J/kmol +S (liquid) = 8.86157e-11 J/kmolK h (liquid) = 11.0214 J/kmol h (liquid) = 0.611782 J/kg dens (gas) = 0.00485458 kg m-3 diff --git a/test_problems/cathermo/testIAPWSPres/testPress.cpp b/test_problems/cathermo/testIAPWSPres/testPress.cpp index f40a8bbc2..cdec289c5 100644 --- a/test_problems/cathermo/testIAPWSPres/testPress.cpp +++ b/test_problems/cathermo/testIAPWSPres/testPress.cpp @@ -44,18 +44,10 @@ int main() printf("dens (liquid) = %g kg m-3\n", dens); u = water->intEnergy(); - if (fabs(u) < 5.0E-7) { - printf("intEng (liquid) ~= 0.0 J/kmol (less than fabs(5.0E-7))\n"); - } else { - printf("intEng (liquid) = %g J/kmol\n", u); - } + printf("intEng (liquid) = %.6f J/kmol\n", u); s = water->entropy(); - if (fabs(s) < 1.0E-9) { - printf("S (liquid) ~= 0.0 J/kmolK (less than fabs(1.0E-9))\n"); - } else { - printf("S (liquid) = %g J/kmolK\n", s); - } + printf("S (liquid) = %.6f J/kmolK\n", s); h = water->enthalpy(); printf("h (liquid) = %g J/kmol\n", h);