From 6aa9c846f4ec5fca4194a1bbafdb2e58e878973e Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Mon, 14 Aug 2006 19:18:34 +0000 Subject: [PATCH] Fixed a compilation error that popped up on SUSE 9.0. --- Cantera/src/thermo/IdealMolalSoln.cpp | 3 +-- Cantera/src/thermo/WaterPDSS.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cantera/src/thermo/IdealMolalSoln.cpp b/Cantera/src/thermo/IdealMolalSoln.cpp index 58f31d694..9ba363902 100644 --- a/Cantera/src/thermo/IdealMolalSoln.cpp +++ b/Cantera/src/thermo/IdealMolalSoln.cpp @@ -330,10 +330,9 @@ namespace Cantera { * */ doublereal IdealMolalSoln::standardConcentration(int k) const { - double c0, mvSolvent; + double c0 = 1.0, mvSolvent; switch (m_formGC) { case 0: - c0 = 1.0; break; case 1: c0 = 1.0 /m_speciesMolarVolume[m_indexSolvent]; diff --git a/Cantera/src/thermo/WaterPDSS.h b/Cantera/src/thermo/WaterPDSS.h index 2561ffbcb..34bc695ae 100644 --- a/Cantera/src/thermo/WaterPDSS.h +++ b/Cantera/src/thermo/WaterPDSS.h @@ -17,7 +17,7 @@ #define CT_WATERPDSS_H #include "ct_defs.h" #include "PDSS.h" -class XML_Node; +//class XML_Node; #include "ThermoPhase.h" class WaterPropsIAPWS;