cantera/test_problems/cathermo/testIAPWS/testIAPWSphi.cpp
Ray Speth b88846e5e0 Fixed C++ tests that were failing under Windows
Visual Studio defaults to 3-digit exponents when printing in scientific
notation. The tests now use a MSVC-specific function to change this
behavior when necessary.
2012-01-09 17:35:28 +00:00

20 lines
307 B
C++

#include "kernel/WaterPropsIAPWSphi.h"
#include <new>
#include <cstdio>
using namespace std;
int main () {
#ifdef _MSC_VER
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif
WaterPropsIAPWSphi *phi = new WaterPropsIAPWSphi();
phi->check1();
phi->check2();
delete phi;
return 0;
}