mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Added tr1/memory include for linux compilation
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include <tr1/memory>
|
||||
#include "SpeedTest.h"
|
||||
#include "AbstractState.h"
|
||||
#include "DataStructures.h"
|
||||
@@ -10,7 +11,7 @@ void compare_REFPROP_and_CoolProp(std::string fluid, int inputs, double val1, do
|
||||
{
|
||||
time_t t1,t2;
|
||||
double dx = 1/((double)N);
|
||||
|
||||
|
||||
std::tr1::shared_ptr<AbstractState> State(AbstractState::factory("HEOS", fluid));
|
||||
t1 = clock();
|
||||
for (std::size_t ii = 0; ii < N; ++ii)
|
||||
@@ -18,7 +19,7 @@ void compare_REFPROP_and_CoolProp(std::string fluid, int inputs, double val1, do
|
||||
State->update(inputs, val1 + ii*d1, val2 + ii*d2);
|
||||
}
|
||||
t2 = clock();
|
||||
|
||||
|
||||
double elap = ((double)(t2-t1))/CLOCKS_PER_SEC/((double)N)*1e6;
|
||||
printf("Elapsed time for CoolProp is %g us/call\n",elap);
|
||||
|
||||
@@ -33,4 +34,4 @@ void compare_REFPROP_and_CoolProp(std::string fluid, int inputs, double val1, do
|
||||
printf("Elapsed time for REFPROP is %g us/call\n",elap);
|
||||
}
|
||||
|
||||
} /* namespace CoolProp */
|
||||
} /* namespace CoolProp */
|
||||
|
||||
Reference in New Issue
Block a user