Skip to content

Commit

Permalink
Merge pull request #780 from JonWel/patch-1
Browse files Browse the repository at this point in the history
Fix error message formatting; see #777
  • Loading branch information
ibell committed Aug 17, 2015
2 parents 900574c + 356f003 commit 40d8917
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Backends/Tabular/BicubicBackend.cpp
Expand Up @@ -142,13 +142,13 @@ void CoolProp::BicubicBackend::update(CoolProp::input_pairs input_pair, double v
// Call again, but this time with molar units; S: [J/kg/K] * [kg/mol] -> [J/mol/K]
update(PSmolar_INPUTS, val1, val2*AS->molar_mass()); return;
}
case PT_INPUTS:{
case PT_INPUTS:{
_p = val1; _T = val2;
if (!single_phase_logpT.native_inputs_are_in_range(_T, _p)){
// Use the AbstractState instance
using_single_phase_table = false;
if (get_debug_level() > 5){ std::cout << "inputs are not in range"; }
throw ValueError(format("inputs are not in range, p=%Lg, T=%Lg", _p, _T));
throw ValueError(format("inputs are not in range, p=%g Pa, T=%g K", _p, _T));
}
else{
using_single_phase_table = true; // Use the table !
Expand Down Expand Up @@ -547,4 +547,4 @@ void CoolProp::BicubicBackend::invert_single_phase_y(const SinglePhaseGriddedTab
}
}

#endif // !defined(NO_TABULAR_BACKENDS)
#endif // !defined(NO_TABULAR_BACKENDS)

0 comments on commit 40d8917

Please sign in to comment.