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.
20 lines
307 B
C++
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;
|
|
}
|