Squelch some compiler warnings

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-11-27 12:08:44 -05:00
parent 2e0b43cc89
commit 362a84254f
2 changed files with 4 additions and 2 deletions

View File

@@ -2344,9 +2344,11 @@ 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 = 1;
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;