Allow factory to provide debug output

This commit is contained in:
Ian Bell
2015-06-07 22:55:16 -06:00
parent 80ffb49b98
commit 995037121b
2 changed files with 14 additions and 0 deletions

View File

@@ -25,6 +25,9 @@ namespace CoolProp {
AbstractState * AbstractState::factory(const std::string &backend, const std::vector<std::string> &fluid_names)
{
if (get_debug_level() > 0){
std::cout << "AbstractState::factory(" << backend << "," << stringvec_to_string(fluid_names) << ")" << std::endl;
}
static const std::string HEOS_string = "HEOS";
if (!backend.compare(HEOS_string))
{