mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
A real virtual destructor this time
This commit is contained in:
@@ -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)) {};
|
||||
|
||||
Reference in New Issue
Block a user