Solves a bug in VTPR (#1272)

The value of lnGammag was not cleared, this was creating a sort of caching issue.
(@ibell this solves the issue I was had in Paper1, I finally got it)
This commit is contained in:
JonWel
2016-10-18 04:07:11 +02:00
committed by Ian Bell
parent 156b3e5cb9
commit 1fd55c9eef

View File

@@ -192,6 +192,7 @@ void UNIFAQ::UNIFAQMixture::set_temperature(const double T, const std::vector<do
}
std::map<std::size_t, double> &thetag = m_thetag, &lnGammag = m_lnGammag;
lnGammag.clear();
for (std::vector<UNIFAQLibrary::Group>::iterator itk = unique_groups.begin(); itk != unique_groups.end(); ++itk) {
double sum1 = 0;
@@ -257,4 +258,4 @@ void UNIFAQ::UNIFAQMixture::set_components(const std::string &identifier_type, s
else {
throw CoolProp::ValueError("Cannot understand identifier_type");
}
}
}