Commit Graph

13 Commits

Author SHA1 Message Date
luzpaz
93f4a986e2 Misc. typos (#1726)
Found via `codespell -i 3 -w -I ../coolprop-word-whitelist.txt` whereby whitelist consists of:
```
cas
formate
hel
nd
te
tim
ue
uint
```
2018-08-14 23:06:49 -06:00
Davide Carpi
b371b75aaf SMath Wrapper refactoring (#1365)
* Full update to latest SS 0.98 APIs

- SS: switched to LowLevelEvaluationFast interface;
- SS: fixed compiler warnings for deprecated methods/properties;
- refactoring;

* refactoring

- removed not useful try/catch from unit manager;
- refactoring of not used methods;

* Fix for SMath bug SS-2414

* minor changes

* Added folder for Test files

* Added test file

IF97 test file from CoolProp/CoolProp issue #1249

* changed filename

* added script for batch testing

* Review of dynamic assistant tootltip

* New layout for README.md

* Updated README.md

* Updated README.md

* Fixed combined emphasis in README.md
2016-12-02 10:41:19 -05:00
Mike Kaganski
1f1bf52f77 Change names of dlls copied to SMath wrapper: use underscore instead of dot (#1113)
This is required in order to remove ".dll" extension from the library
name in .NET DllImport. And that, in turn, is intended to enable
cross-platform use of SMath wrapper on other OSes, like Linux (that is
supported by both CoolProp and SMath).
As explained at
http://www.mono-project.com/docs/advanced/pinvoke/, it's recommended to
omit the library extension to allow mono to find native libraries.
2016-06-21 08:31:43 -06:00
Mike Kaganski
9a0851c5dd Improvements to SMath wrapper error handling and some small tweaks (#1111)
* Improve SMath wrapper error handling

1. Make CoolProp errors visible to SMath immediately, calling
get_global_param_string("errstring").
2. Use System.Exception with message instead of SMath own exceptions
where possible (to show the required message instead of irrelevant SMath
unconfigurable one); only retain SMath exceptions where it's necessary.

* Remove redundant text from release_readme.rst.txt; fixes #1105
2016-06-07 19:34:23 -06:00
Davide Carpi
569a4152ad Update AssemblyInfo.cs.template (#1109)
Copyright year updated #1108
2016-06-07 08:43:23 -06:00
Mike Kaganski
6d21a6cc65 Allow cmake properly build SMath wrapper (#1100)
* Allow cmake properly build SMath wrapper

Integrate c# project into solution; allow usual cmake --build . --config
Release to build SMath wrapper.
Remove obsolete build.bat and coolprop_wrapper.sln files:
cmake-generated solution already includes everything.
Use build subdirectory wrappers/SMath for all generated files (both by
cmake, including csproj file itself, and by build process), thus no
dirty tree anymore.

Please note: this change requires cmake version 2.8.9 (because of
include_external_msproject TYPE).

* Tentative patch for buildbot

Unfortunately, I cannot test the buildbot, neither I know about it much.
I suppose that this is a sensible patch to be able to work with previous
changes to SMath build process.

* Update SMath wrapper help
2016-06-06 08:05:46 -06:00
Mike Kaganski
f7ef611f50 Set error string in get_parameter_information_string() : fixes #1096 (#1097)
Set error string in get_parameter_information_string() and fix SMath wrapper : fixes #1096
2016-06-05 14:54:42 -06:00
Davide Carpi
61366fb3e8 Enable infinity in MakeDoubleResult (#1080)
Looking around I think this change should be related to the issue #985
Since double.NegativeInfinity and double.PositiveInfinity are valid results from the solvers and SMath.Math.Numeric.TDouble(result) can't handle these values directly, this patch allows the users to see  ∞ / -∞ as results on the canvas
2016-05-22 13:00:09 +02:00
Ian Bell
b89f8f99fc Update the docs for SMath wrapper
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-19 21:45:12 -05:00
Ian Bell
60c46812dd Fix build_zip.bat.template for SMath Studio
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-19 21:26:38 -05:00
Ian Bell
165dcf70c7 Update install script to be packaged, add build_zip template
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-18 23:30:15 -05:00
Ian Bell
68e1c03392 Updated SMath Unit.cs file
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-18 22:55:07 -05:00
Ian Bell
8f56fb7a0e Added SMath wrapper code
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-18 22:20:27 -05:00