mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Also load shared library from the ALTERNATIVE_REFPROP_PATH if provide, otherwise use default logic
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user