From 43fd0684ff65df6f2ad382a68a37ec4bfa0e66bb Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Wed, 20 Aug 2014 16:48:14 +0200 Subject: [PATCH] Added uppercase aliases for all parameters to help with https://github.com/CoolProp/CoolProp/issues/103 Signed-off-by: Ian Bell --- src/DataStructures.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/DataStructures.cpp b/src/DataStructures.cpp index 99ef599f..ff42cd6a 100644 --- a/src/DataStructures.cpp +++ b/src/DataStructures.cpp @@ -124,6 +124,13 @@ public: index_map.insert(std::pair("Tmax", iT_max)); index_map.insert(std::pair("pmax", iP_max)); index_map.insert(std::pair("molemass", imolar_mass)); + + std::map::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(upper(it->first), it->second)); + } } };