Added headers for ubuntu problem.

This commit is contained in:
Harry Moffat 2009-03-13 03:26:18 +00:00
parent ae7691e49c
commit 598dbd60c4
2 changed files with 10 additions and 15 deletions

View file

@ -23,6 +23,7 @@
#include "writelog.h"
#include <cstdio>
//#include "../stringUtils.h"
#include <cstdlib>
using namespace std;

View file

@ -23,19 +23,13 @@
#include <ctype.h>
#include <string>
#include <cstdlib>
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;