H & S Ancillaries use value minus value at anchor state

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-08-01 10:34:13 +02:00
parent 24d37e0e6d
commit ea3ceeccfe
4 changed files with 41 additions and 13 deletions

View File

@@ -130,7 +130,8 @@ namespace cpjson
if (!v.IsArray()) {throw CoolProp::ValueError("input is not an array"); }
for (rapidjson::Value::ValueIterator itr = v.Begin(); itr != v.End(); ++itr)
{
cpjson::value_information vi = cpjson::get_information((*itr));
// This is here for debugging purposes
// cpjson::value_information vi = cpjson::get_information((*itr));
if (!(itr->IsArray())) {
throw CoolProp::ValueError(format("input \"%s\" is not a 2D array",cpjson::json2string(v).c_str()));
}