MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / FindHA

Method FindHA

wrappers/SMath/coolprop_wrapper/Unit.cs:184–192  ·  view source on GitHub ↗
(string param)

Source from the content-addressed store, hash-verified

182 static System.Collections.Generic.Dictionary<string, MItem> HAdic = InitHAUnitsDictionary();
183
184 public static MItem FindHA(string param)
185 {
186 if (!HAdic.ContainsKey(param))
187 return unitless;
188
189 // HACK: fix for SS-2414
190 return SMath.Math.Decision.SymbolicCalculation(HAdic[param].ToEntry(), new SMath.Math.Store());
191 //return HAdic[param];
192 }
193
194 static void matchInternal(MItem unit, SMath.Math.Numeric.TNumber val, ref SMath.Math.Store context)
195 {

Callers 1

TryEvaluateExpressionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected