From 4458933420c48efef259e508af1a2045f9e483e0 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 13 Mar 2014 02:19:19 +0000 Subject: [PATCH] Fix alignment of ThermoPhase::report output on Windows Windows uses 3 digits in the exponent, for which there wasn't enough space being allocated in the columns for the specific properties. --- src/thermo/ThermoPhase.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/thermo/ThermoPhase.cpp b/src/thermo/ThermoPhase.cpp index 9082e2192..390d191d7 100644 --- a/src/thermo/ThermoPhase.cpp +++ b/src/thermo/ThermoPhase.cpp @@ -884,23 +884,23 @@ std::string ThermoPhase::report(bool show_thermo) const s += p; sprintf(p, " ----------- ------------\n"); s += p; - sprintf(p, " enthalpy %12.6g %12.4g J\n", + sprintf(p, " enthalpy %12.5g %12.4g J\n", enthalpy_mass(), enthalpy_mole()); s += p; - sprintf(p, " internal energy %12.6g %12.4g J\n", + sprintf(p, " internal energy %12.5g %12.4g J\n", intEnergy_mass(), intEnergy_mole()); s += p; - sprintf(p, " entropy %12.6g %12.4g J/K\n", + sprintf(p, " entropy %12.5g %12.4g J/K\n", entropy_mass(), entropy_mole()); s += p; - sprintf(p, " Gibbs function %12.6g %12.4g J\n", + sprintf(p, " Gibbs function %12.5g %12.4g J\n", gibbs_mass(), gibbs_mole()); s += p; - sprintf(p, " heat capacity c_p %12.6g %12.4g J/K\n", + sprintf(p, " heat capacity c_p %12.5g %12.4g J/K\n", cp_mass(), cp_mole()); s += p; try { - sprintf(p, " heat capacity c_v %12.6g %12.4g J/K\n", + sprintf(p, " heat capacity c_v %12.5g %12.4g J/K\n", cv_mass(), cv_mole()); s += p; } catch (CanteraError& err) {