mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
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:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user