Temporarily disable PHI0 until discrepancies can be resolved

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-12-09 22:27:03 -05:00
parent 1a9f0a4e32
commit 0b1a978fcf

View File

@@ -1410,8 +1410,8 @@ long double REFPROPMixtureBackend::call_phixdll(long itau, long idel)
}
long double REFPROPMixtureBackend::call_phi0dll(long itau, long idel)
{
throw ValueError("Temporarily the PHI0dll function is not available for REFPROP");
double val = 0, tau = _tau, delta = _delta, __T = T(), __rho = rhomolar()/1000;
double dT_dtau;
if (PHI0dll == NULL){throw ValueError("PHI0dll function is not available in your version of REFPROP. Please upgrade");}
PHI0dll(&itau, &idel, &__T, &__rho, &(mole_fractions[0]), &val);
return static_cast<long double>(val)/pow(delta,idel)/pow(tau,itau);