Closed henningjp closed 2 years ago
What's the question?
Sorry, hit return too soon. Issue updated.
I would say: don't use user-defined units. It's a Pandora's box best kept closed.
Hmmm. OK. I'll work around it and take care of the unit conversions in the wrapper. I was trying to avoid that. It does work quite well, though! I get all the right answers in the USER2 units, which is just a slight variation from the MASS SI
units. I just needed a way to future proof the wrapper code. I wanted the REFPROP10 calls to be dimensionally consistent with my Legacy API calls (where I handle the units in the wrapper code).
I am going to take a much more stripped down approach to units in REFPROP 11. I personally think that REFPROP should only support base SI units and let the user deal with unit conversions since there are already good libraries for dealing with units in many programming languages (though not Excel I admit).
OK. Thanks.
Description
There doesn't appear to be a way to get the unit enumerations from the DLL required to set the USER1 and USER2 Units through the High-Level API (i.e. REFPROPdll).
Documentation states (emphasis mine):
However, the only way I can find to get these values is to dig into CONSTS.INC to get the unit code numbers and hard code them into my wrapper code. GETENUMdll does not return these enumerations.
Expected behavior: GETENUMdll (or some other public function) should return these enumerations.
Actual behavior: Unit values have to be hard coded into any wrapper code that calls the public functions from the REFPROP DLL.
Versions
REFPROP Version: 10.0.0.2
Operating System and Version: Windows 10 Access Method: C++ wrapper development
Additional Information
If possible, please post examples and/or screenshots of the issue.