Get the generalized cubics compiling again

This commit is contained in:
Ian Bell
2016-01-21 08:14:05 -07:00
parent 5c3711c724
commit de651dd971
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
#include "generalizedcubic.h"
#include "GeneralizedCubic.h"
#include <cmath>
const double AbstractCubic::T_r = 1.0;

View File

@@ -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);