Added uppercase aliases for all parameters to help with https://github.com/CoolProp/CoolProp/issues/103

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-08-20 16:48:14 +02:00
parent b5f39490d6
commit 43fd0684ff

View File

@@ -124,6 +124,13 @@ public:
index_map.insert(std::pair<std::string, int>("Tmax", iT_max));
index_map.insert(std::pair<std::string, int>("pmax", iP_max));
index_map.insert(std::pair<std::string, int>("molemass", imolar_mass));
std::map<std::string,int>::iterator it;
for(it = index_map.begin(); it != index_map.end(); ++it )
{
// Add all upper-case aliases for EES support (fine to just do it if is already there)
index_map.insert(std::pair<std::string, int>(upper(it->first), it->second));
}
}
};