From 89a8b49ded64f93d80a164dd4059a30210e644a3 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Mon, 29 Dec 2008 22:53:36 +0000 Subject: [PATCH] Fixed a compilation error in sunos --- Cantera/src/thermo/WaterPropsIAPWSphi.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Cantera/src/thermo/WaterPropsIAPWSphi.cpp b/Cantera/src/thermo/WaterPropsIAPWSphi.cpp index 5dde4a863..4263ed0ae 100644 --- a/Cantera/src/thermo/WaterPropsIAPWSphi.cpp +++ b/Cantera/src/thermo/WaterPropsIAPWSphi.cpp @@ -14,8 +14,15 @@ #include "WaterPropsIAPWSphi.h" -#include #include +#include + +using std::printf; +using std::sqrt; +using std::log; +using std::exp; +using std::pow; +using std::fabs; /* * Critical Point values in mks units: Note, these aren't used in this @@ -390,8 +397,8 @@ void WaterPropsIAPWSphi::intCheck(double tau, double delta) { double res_dt = phiR_dt(); double nau_dt = phi0_dt(); - printf("nau = %20.12e\t\tres = %20.12e\n", nau, res); - printf("nau_d = %20.12e\t\tres_d = %20.12e\n", nau_d, res_d); + std::printf("nau = %20.12e\t\tres = %20.12e\n", nau, res); + std::printf("nau_d = %20.12e\t\tres_d = %20.12e\n", nau_d, res_d); printf("nau_dd = %20.12e\t\tres_dd = %20.12e\n", nau_dd, res_dd); printf("nau_t = %20.12e\t\tres_t = %20.12e\n", nau_t, res_t); printf("nau_tt = %20.12e\t\tres_tt = %20.12e\n", nau_tt, res_tt);