Catch exceptions properly for critical point routines; silence output

This commit is contained in:
Ian Bell
2015-08-16 20:04:59 -06:00
parent d9a2dc61f4
commit f02e95c7a4
2 changed files with 14 additions and 12 deletions

View File

@@ -3102,7 +3102,9 @@ public:
CoolProp::SimpleState crit = HEOS.get_state("critical");
critical_points.push_back(crit);
N_critical_points++;
std::cout << HEOS.get_mole_fractions()[0] << " " << crit.rhomolar << " " << crit.T << " " << p_MPa << std::endl;
if (get_debug_level() > 0){
std::cout << HEOS.get_mole_fractions()[0] << " " << crit.rhomolar << " " << crit.T << " " << p_MPa << std::endl;
}
}
// Update the storage values