A real virtual destructor this time

This commit is contained in:
Ian Bell
2019-01-10 14:34:02 -07:00
parent 957f7c6191
commit 900b3c9bae

View File

@@ -24,7 +24,7 @@ protected:
sqrt_Tr_Tci; ///< The sqrt of the (constant) reducing temperature divided by the critical temperature of the pure component
std::vector<double> c; ///< The vector of constants
public:
virtual AbstractCubicAlphaFunction() {};
virtual ~AbstractCubicAlphaFunction() {};
virtual double term(double tau, std::size_t itau) = 0;
void set_Tr_over_Tci(double Tr_over_Tci){ this->Tr_over_Tci = Tr_over_Tci; this->sqrt_Tr_Tci = sqrt(Tr_over_Tci); };
AbstractCubicAlphaFunction(double a0, double Tr_over_Tci) : a0(a0), Tr_over_Tci(Tr_over_Tci), sqrt_Tr_Tci(sqrt(Tr_over_Tci)) {};