Remove R_u_ratio, not needed in this function

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-12-01 23:36:11 -05:00
parent f3dbb45249
commit dcd33a426c

View File

@@ -2344,12 +2344,7 @@ void HelmholtzEOSMixtureBackend::calc_all_alphar_deriv_cache(const std::vector<l
for (std::size_t i = 0; i < N; ++i){
HelmholtzDerivatives derivs = components[i]->pEOS->alphar.all(tau, delta);
long double xi = mole_fractions[i];
long double R_u_ratio;
if (get_config_bool(NORMALIZE_GAS_CONSTANTS)){
R_u_ratio = components[0]->pEOS->R_u/R_u_CODATA;
}else{
R_u_ratio = 1;
}
summer_base += xi*derivs.alphar;
summer_dDelta += xi*derivs.dalphar_ddelta;
summer_dTau += xi*derivs.dalphar_dtau;