From 598dbd60c4797c1d92d1b8d322e2d0e1042ed7ae Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Fri, 13 Mar 2009 03:26:18 +0000 Subject: [PATCH] Added headers for ubuntu problem. --- Cantera/src/converters/CKParser.cpp | 1 + Cantera/src/converters/NASA9Parser.cpp | 24 +++++++++--------------- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/Cantera/src/converters/CKParser.cpp b/Cantera/src/converters/CKParser.cpp index 006091d3f..b51b408ea 100755 --- a/Cantera/src/converters/CKParser.cpp +++ b/Cantera/src/converters/CKParser.cpp @@ -23,6 +23,7 @@ #include "writelog.h" #include //#include "../stringUtils.h" +#include using namespace std; diff --git a/Cantera/src/converters/NASA9Parser.cpp b/Cantera/src/converters/NASA9Parser.cpp index f918fd5e7..cb4f7069a 100644 --- a/Cantera/src/converters/NASA9Parser.cpp +++ b/Cantera/src/converters/NASA9Parser.cpp @@ -23,19 +23,13 @@ #include #include +#include using namespace std; namespace ckr { - static std::string int2s(int n, std::string fmt="%d") { - char buf[30]; - sprintf(buf, fmt.c_str(), n); - return string(buf); - } - - /** * Add an element to a species. @@ -114,14 +108,14 @@ namespace ckr { * @param tmid intermediate temperature * @param tmax maximum temperature */ - static void checkTemps(std::ostream& log, double tmin, - double tmid, double tmax) - { - if (tmin == 0.0 || tmid == 0.0 || tmax == 0.0) { - throw CK_SyntaxError(log, - "error reading Tmin, Tmid, or Tmax"); - } - } + // static void checkTemps(std::ostream& log, double tmin, + // double tmid, double tmax) + // { + // if (tmin == 0.0 || tmid == 0.0 || tmax == 0.0) { + // throw CK_SyntaxError(log, + // "error reading Tmin, Tmid, or Tmax"); + // } + //} static double getNumberFromString(std::string s) { bool inexp = false;