mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-22 12:28:04 -05:00
Get the generalized cubics compiling again
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "generalizedcubic.h"
|
||||
#include "GeneralizedCubic.h"
|
||||
#include <cmath>
|
||||
|
||||
const double AbstractCubic::T_r = 1.0;
|
||||
|
||||
@@ -108,12 +108,12 @@ public:
|
||||
std::vector<double> pc,
|
||||
std::vector<double> acentric,
|
||||
double R_u)
|
||||
: AbstractCubic(Tc, pc, acentric, R_u, 1+sqrt(2), 1-sqrt(2)) {};
|
||||
: AbstractCubic(Tc, pc, acentric, R_u, 1+sqrt(2.0), 1-sqrt(2.0)) {};
|
||||
PengRobinson(double Tc,
|
||||
double pc,
|
||||
double acentric,
|
||||
double R_u)
|
||||
: AbstractCubic(std::vector<double>(1,Tc), std::vector<double>(1,pc), std::vector<double>(1,acentric), R_u, 1+sqrt(2), 1-sqrt(2)) {};
|
||||
: AbstractCubic(std::vector<double>(1,Tc), std::vector<double>(1,pc), std::vector<double>(1,acentric), R_u, 1+sqrt(2.0), 1-sqrt(2.0)) {};
|
||||
|
||||
double a0_ii(std::size_t i);
|
||||
double b0_ii(std::size_t i);
|
||||
|
||||
Reference in New Issue
Block a user