This commit is contained in:
Ian Bell
2014-11-14 18:41:30 -05:00
8 changed files with 213 additions and 21 deletions

View File

@@ -26,14 +26,17 @@ surface tension N/m
*/
#include "CoolPropTools.h"
#if defined(__ISWINDOWS__)
#include <windows.h>
HINSTANCE RefpropdllInstance=NULL;
char refpropPath[] = "";
#if defined(__powerpc__)
void *RefpropdllInstance=NULL;
char refpropPath[] = "/opt/refprop";
#elif defined(__ISLINUX__)
#include <dlfcn.h>
void *RefpropdllInstance=NULL;
char refpropPath[] = "/opt/refprop";
#elif defined(__ISWINDOWS__)
#include <windows.h>
HINSTANCE RefpropdllInstance=NULL;
char refpropPath[] = "";
#elif defined(__ISAPPLE__)
#include <dlfcn.h>
void *RefpropdllInstance=NULL;

View File

@@ -6,6 +6,11 @@
#include <time.h>
// A hack to make powerpc happy since sysClkRateGet not found
#if defined(__powerpc__)
#define CLOCKS_PER_SEC 1000
#endif
namespace CoolProp{
void compare_REFPROP_and_CoolProp(std::string fluid, CoolProp::input_pairs inputs, double val1, double val2, std::size_t N, double d1, double d2)