Also load shared library from the ALTERNATIVE_REFPROP_PATH if provide, otherwise use default logic

This commit is contained in:
Ian Bell
2016-01-06 23:51:01 -07:00
parent 3ba232d8a2
commit 17d0a95d9f

View File

@@ -166,7 +166,9 @@ bool REFPROPMixtureBackend::REFPROP_supported () {
// Function names were defined in "REFPROP_lib.h",
// This platform theoretically supports Refprop.
std::string err;
bool loaded_REFPROP = ::load_REFPROP(err);
const std::string &alt_rp_path = get_config_string(ALTERNATIVE_REFPROP_PATH);
bool loaded_REFPROP = ::load_REFPROP(err, alt_rp_path);
if (loaded_REFPROP) {
return true;
}