correction

Added refrigerant type in example
This commit is contained in:
Bruce Wernick
2015-12-17 10:32:50 +02:00
parent d31664a5b8
commit fc58941d79

View File

@@ -14,4 +14,20 @@ A very simple example of linking Lazarus and CoolProp can be found obtained by d
You will need to download the release shared library for your platform from :sfdownloads:`sourceforge <shared_library>` or the development version of the shared library from :sfnightly:`the nightly snapshots <shared_library>`.
Open Lazarus and then open the project file you downloaded. Build and run. Place the downloaded shared library for CoolProp in the same folder with generated executable.
Open Lazarus and then open the project file you downloaded. Build and run. Place the downloaded shared library for CoolProp in the same folder with generated executable.
Floating Point Exceptions
-------------------------
We have noticed a run time error that occurs with certain inputs. For example, call to
t := PropsSI('T', 'P', p, 'H', h, ref);
This will crash if the dll is called from Delphi (not confirmed for Lazarus) at the point p = 4.4e6, h=330e3 and ref=R22.
If you disable the floating point exceptions, then you get the right answer!
Set8087CW($133f);
Don't get me wrong here, this is not a fix! Apparently, most compilers disable the floating point exceptions so all we are doing here is masking the actual fault.