Exposes values for minimum and maximum fractions for incompressibles

Closes https://github.com/CoolProp/CoolProp/issues/233

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-11-23 20:18:39 -05:00
parent 951aa83efc
commit 383b045bb1
5 changed files with 17 additions and 1 deletions

View File

@@ -195,7 +195,10 @@ double AbstractState::trivial_keyed_output(int key)
return this->calc_GWP20();
case iGWP500:
return this->calc_GWP500();
case ifraction_min:
return this->calc_fraction_min();
case ifraction_max:
return this->calc_fraction_max();
default:
throw ValueError(format("This input [%d: \"%s\"] is not valid for trivial_keyed_output",key,get_parameter_information(key,"short").c_str()));
}