381 Commits

Author SHA1 Message Date
Jorrit Wronski
6b111a304c Handle the msgpack endianness 2022-12-07 09:18:08 +01:00
Jorrit Wronski
720355220d Checking for ARM64 on Windows 2022-12-07 00:05:41 +01:00
Jorrit Wronski
76daa5abe6 Force a native build on Linux instead of 64bit 2022-12-06 23:16:03 +01:00
Julien Marrec
c1ed08617e Bump Catch 1 to Catch v3.0.0-preview4 (#2105)
* Bump Catch2 to latest v3.0.0-preview4

Bump Catch2 to latest 2.x: 2.13.8

Rename submodule Catch to Catch2

Add catch2 to ctest

Fix missing ";" in catch tests

Use ctest for catch2: run once with little output, then 2nd time with verbose output for failed tests

Run through CatchTestRunner: TEMP: PICK A STYLE

Update Catch to v3.0.0-preview4

Try to migrate to catch2 v3

Ok it builds and runs, but I'm missing tests

Get all files that have inline tests, now I get same behavior as with catch1

Put back app sources

* Remove the link to coolprop lib since I am now using APP_SOURCES instead of just the specific files with tests
2022-03-31 18:47:00 -04:00
Julien Marrec
05c8cf503b Lint: use automated tooling to reformat C++ and CMakeLists files (#2103)
* Add initial clang tidy / clang format config files

* Clang format the entire codebase

```
find ./src -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./include -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./Web -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./dev -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./wrappers -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
```

* Add a .cmake-format file and reformat CmakeLists.txt with it

https://github.com/cheshirekow/cmake_format

* Add a clang-format workflow


only runs on PRs, only on touched files
2022-03-31 10:51:48 -04:00
Julien Marrec
149a40d88b Add github action to build python wheels (including python 3.9 and 3.10) (#2097)
* Fix build error: `src/Backends/IF97/IF97Backend.h:54:34: error: call of overloaded ‘abs(double)’ is ambiguous`

Found with the manylinux_2_24_x86_64

gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516

* Register MSVC 2019 and 2022 in setup.py

* setup.py: when calling cmake, build in parallel

* Enable using Env variables instead of passing them as args to setup.py

* Github actions for linux: try 1

* use actions/checkout@v3 for submodules

* mod setup.py:; typo

* Random shot for cibuildwheel for all platforms

* I thought package_dir was a flag, but it's positional

* typo in cmake_compiler

* add cython to setup_requires

* try a pryproject.toml to install cython

* try more requirements?

* pywin32 only found on win32 I guess

* Try with CIBW_BEFORE_BUILD instead

* try to enable msvc via vcvarsall on windows, and pass MACOSX_DEPLOYMENT_TARGET

* more tweaks for windoze

* disable tests for now (fails on windows)

* tweak mac again: it seems mac doesn't understand a C++ lambda, so like it's using pre C++11

* tweak

* try 10.15 for mac...

* try to  force C++11 since mac picks up the path where lambdas are used...

* Move back down to 10.9 now that C++11 is enabled and it works on mac, it should be enough

* Try to debug win32

* Enable part of the upload step (minus the upload) to list the wheels

* try to allow win32 to fail for now (instead of plain disabling)

* Disable the python_linux.yml workflow, so cibuildwheels works fine.

* Adjust the upload step to point to the right folder

* make LGTM python happy
2022-03-31 09:26:31 -04:00
Ian Bell
381c8535e5 Update the Javascript tooling 2022-02-08 01:21:03 -05:00
Dong Keun Oh
f7c545138a A minor correction in case of COOLPROP_OBJECT_LIBRARY=ON (#2011) 2021-03-25 22:38:19 -04:00
Bryan W. Weber
2ea29cfeaa Fix build on macOS (#2008)
The changes in #1990 require C++11 compiler support. On macOS 10.14 with
XCode 11.3, the -std=c++11 flag must be specified to the compiler.
2021-03-15 21:32:42 -04:00
spinnau
eb3e4cec7a LibreOffice: Use pip for installing CoolProp python package (#1993)
Updated the installation routine for the CoolProp python package in the
LibreOffice wrapper to use pip. This simplifies the script, as the download
links for different platforms and ABI versions will be handled by pip.

Bundled Python interpreters in LibreOffice doesn't include pip. But as pip
itself is platform independent and runs on py2/py3, it will be bundled inside
the LibreOffice extension at build time.
2020-12-21 18:25:51 -05:00
Ian Bell
e28a5229f9 Also use lib prefix for C# shared library on linux; see #1963 2020-08-08 14:33:19 -04:00
Jorrit Wronski
35baa3e42e Bump the revision to 6.4.2dev 2020-08-04 11:15:19 +02:00
Jorrit Wronski
2096e4f122 Disable the example generator when building the web docs. 2020-07-30 09:24:31 +02:00
Jorrit Wronski
521dd1f080 Generate the examples from a custom target 2020-07-30 08:31:40 +02:00
Jorrit Wronski
b8f4cb9031 Back to the old Python handling to fix the Linux wheels for Python 2020-07-29 22:36:17 +02:00
Jorrit Wronski
55852b2f31 Remove the example scripts from the CMake builds 2020-07-29 13:44:54 +02:00
Jorrit Wronski
8b37861331 Prefer Python 3 2020-07-29 13:20:58 +02:00
Jorrit Wronski
06f7250c6c Stop preferring Python 2.7 over Python 3 2020-07-29 12:47:34 +02:00
Ian Bell
3d3c69b643 Use the found python executable 2020-06-09 21:52:41 -04:00
Ian Bell
acb0273651 Bump version to 6.4.1 2020-06-02 22:35:18 -04:00
Ian Bell
3189e8b10e Bump to 6.4.1 dev 2020-05-14 21:43:37 -04:00
Ian Bell
986a5c8cfa version 6.4.0! 2020-05-10 19:32:24 -04:00
Ian Bell
20406b2680 Inno setup version 6 now 2020-05-10 18:48:08 -04:00
Jorrit Wronski
327e3612a9 Fix the installer generator, closes #1930 2020-05-10 22:59:46 +02:00
Jorrit Wronski
15d0fb6741 Back to the old style, but with architecture definitions 2020-05-10 22:48:29 +02:00
Jorrit Wronski
d2aa37baea Explicitly select architecture and CMake generator for Windows installer builds 2020-05-10 22:40:13 +02:00
Ian Bell
220b26f1fc New paths for octave 2020-05-07 07:08:43 -04:00
ian
d186b49f21 spaces not needed 2019-12-13 21:29:00 -07:00
ian
39f7f88eb0 Fix shared_ptr once and for all... ? 2019-12-13 18:43:21 -07:00
Zach Baird
8108b4b80b Adding PC-SAFT EOS (#1877)
* initial commit

* got pressure unit tests working

* Added density solver and tests

* Added enthalpy function

* Added unit tests for S and G

* partial addition of flash

* PCSAFT backend implemented

* added missing semicolon

* added missing semicolon
2019-12-12 20:49:22 -07:00
ian
bca1dfeacb ASAN leaks will actually get tested 2019-11-10 20:30:22 -07:00
ian
28f7ebad31 Maybe ASAN builds now 2019-11-10 20:19:00 -07:00
Jorrit Wronski
7cd64e87a7 Add a flexible Python detection logic that supports anaconda etc 2019-10-28 14:59:11 +01:00
Jorrit Wronski
057941be07 Learnings from releasing v6.3.0 2019-05-19 23:15:32 +02:00
Jorrit Wronski
bed556bf59 Getting ready for next release, closes #1816 2019-04-13 14:50:13 +02:00
Jorrit Wronski
bbbde3b164 Feature/docs py3 (#1814)
* Add main example

* Modified the writer object in an attempt to fix #1786

* More Python 3 fixes, see #1786

* Added more Python 3
2019-04-06 11:33:48 -06:00
Ian Bell
3c5c1b9b41 Think I fixed emscripten via a RelWithDebInfo workaround 2019-03-30 12:37:54 -06:00
Ian Bell
a73e447f92 Revert changes for FMT; should have been done in branch (sorry @jowr) 2019-01-11 21:27:56 -07:00
Ian Bell
70b618345f Two missing FMT libraries 2019-01-11 21:08:34 -07:00
Ian Bell
b1fd926ef3 First attempt at moving FMTLIB away from header-only; speed up builds maybe? 2019-01-11 20:01:01 -07:00
Ian Bell
8419fd846d Put R back into CMakeLists.txt (oops) 2019-01-11 19:46:25 -07:00
Ian Bell
1a0447dc7a Goodbye to MATLAB and scilab info in CMakeLists.txt; all support is via Python 2019-01-11 19:37:22 -07:00
spinnau
cd48615207 Make wrapper for LibreOffice an extension (#1773)
* Make wrapper for LibreOffice an extension

The LibreOffice wrapper is changed to be a real extension for LibreOffice.
Just as with the current solution, Python is used for the calculations in
the background.

* The extension now contains the complete wrapper code. Thus, there is
  no need anymore to use a special prepared LibreOffice template file.

* The wrapper is extended to contain all high-level interface functions
  and includes descriptions for the cell formulas.

* The extension contains a helper function to download and install the
  CoolProp Python package within the extension directory. This function
  can be called from the LibreOffice options menu. On macOS the Python
  certifi package will be used to verify certificates for https downloads.

* Update web documentation for new LibreOffice extension

* Installation and usage instructions

* Create CMake target for building of the LibreOffice wrapper

* Prepare and bundle all files as .oxt extension file
2019-01-11 12:16:08 -07:00
Jorrit Wronski
fe7c8f1805 Feature/recent compilers (#1783)
This fixes many issues: 
- Python packages can be built with XCode 10, closes #1782 
- Handling of CMake options for OSX stdc++ is streamlined
- TR1 warnings from MSVC 2017 have been silenced
- Nightly builds fixed, closes #1778 
- Documentation builds fixed, closes #1762 
- Python source packages are updated with recent Cython, closes #1777
2019-01-11 11:42:55 +01:00
Ian Bell
9edec452df Fix .so prefix for OSX 2019-01-10 15:22:42 -07:00
Ian Bell
4ba2492f80 Get Octave 4.4 working 2019-01-10 10:50:31 -07:00
Ian Bell
246729555a One more cmake path 2019-01-09 22:36:46 -07:00
Ian Bell
4fc7572877 print out octave lib 2019-01-09 22:29:13 -07:00
Jorrit Wronski
315af722ee Bump and MATLAB FAQs 2018-10-28 20:38:50 +01:00
Jorrit Wronski
81dbcb71c5 And back again due to pypi 2018-10-28 17:25:11 +01:00