Commit Graph

9830 Commits

Author SHA1 Message Date
Ray Speth
74fd8795c8 [SCons] Restore functionality of buildutils.which
Broken in 97fc050bde
2023-02-02 18:33:16 -06:00
Ray Speth
713b7b118f [SCons] Enforce minimum MACOS_DEPLOYMENT_TARGET
10.15 or newer is required for C++17 support
2023-02-02 18:33:16 -06:00
Ray Speth
7f93a6292d Bump vendored Eigen to version 3.4.0 2023-02-02 18:33:16 -06:00
Ray Speth
081f434cf6 [SCons] Link tests and samples to shared library on Windows 2023-02-02 18:33:16 -06:00
Ray Speth
3c9af75f05 Bump vendored fmt library to version 9.1.0
This version properly exports all necessary DLL symbols, eliminating the
need to embed it separately in the Cython module.
2023-02-02 18:33:16 -06:00
Ray Speth
ae9687ad36 Handle case where extension manager comes from existing Python module 2023-02-02 18:33:16 -06:00
Ray Speth
8114f2f828 [SCons] Link Python module to Cantera shared library 2023-02-02 18:33:16 -06:00
Ray Speth
5ae4847239 Introduce cantera_python shim and load only when needed
This eliminates the need to directly link the Cantera shared library
or Cantera applications to libpython.
2023-02-02 18:33:16 -06:00
Ray Speth
29c7094b80 [SCons] Compile using C++17 standard
This is a prerequisite to using Boost.DLL with the std::filesystem library.
2023-02-02 18:33:16 -06:00
Ray Speth
e428489656 Eliminate obsolete CANTERA_USE_INTERNAL 2023-02-02 18:33:16 -06:00
Ray Speth
076dff7462 [SCons] Automatically export symbols for DLL 2023-02-02 18:33:16 -06:00
Ray Speth
626ab1e554 Add "using" directives for common types 2023-02-02 18:33:16 -06:00
Ray Speth
cc0377deec Fix compilation failures with PCH and Eigen
Compilation of polyfit.cpp was failing with GCC on some systems with the
error: "second argument to '__builtin_prefetch' must be a constant"
2023-02-02 18:33:16 -06:00
Ray Speth
7627417286 Move some function definitions out of header files
This reduces the set of functions that need to be exported from the
shared library, which includes methods called from inlined functions
defined in header files.
2023-02-02 18:33:16 -06:00
Ray Speth
6ee94c1df1 Fix incorrect virtual specifier on FalloffRate::evalFromStruct 2023-02-02 18:33:16 -06:00
Ray Speth
622b37efa4 Move factory function definitions out of .h files 2023-02-02 18:33:16 -06:00
Cory Kinney
c0ae563def Add Pycharm to .gitignore
Ignore `.idea/` folder associated with PyCharm IDE data
2023-01-24 07:30:28 -05:00
Cory Kinney
81633c31b7 Allow float input of integer geometry flags in ck2yaml
If `permissive` is given, `float` geometry flags are cast to `int` and are accepted if the values are equal, otherwise, `InputError` is raised. If `permissive` is not given, existing behavior is unchanged.

Add tests to check for correct behavior with and without permissive, for float rounding error, and for character inputs.

Closes #1395
2023-01-24 07:30:28 -05:00
Ray Speth
8faf6082d3 Fix skipping of pandas test when pandas is not installed 2023-01-23 12:57:58 -05:00
Ray Speth
405e51ffbe Fix files with missing end-of-file newlines 2023-01-23 12:57:58 -05:00
Ray Speth
37250eca98 Remove outdated "friend" declaration 2023-01-23 12:57:58 -05:00
Ray Speth
695bbf5bd1 [Thermo] Deprecate unused getChemPotentials_RT method 2023-01-23 12:57:58 -05:00
Ray Speth
99fffea847 Remove references to "ASCII" input files 2023-01-23 12:57:58 -05:00
Ray Speth
97839894e2 Fix spelling errors 2023-01-23 12:57:58 -05:00
Ray Speth
7f73505ef6 [Doc] Describe Peng-Robinson input parameters
Also link from phase thermo model to species thermo model for
Peng-Robinson and Redlich-Kwong models.
2023-01-23 12:57:58 -05:00
Ray Speth
633e5d285f Deprecate Kinetics::surfacePhaseIndex
The 'reactionPhaseIndex' method is a more general replacement
2023-01-23 12:57:58 -05:00
Ray Speth
781f7d74a2 [Input] Fix validation handling with minimal Python module 2023-01-23 12:57:58 -05:00
Ray Speth
518b74d5fe Match Sundials integer type in some functions 2023-01-23 12:57:58 -05:00
Ray Speth
39d5f33587 [Python] Defer imports of scipy and pandas 2023-01-22 19:26:00 -05:00
Ray Speth
6ddfc2239b [Python] Replace pkg_resources
The import time for pkg_resources is significant. As of Python 3.8, the
two commands we use can be replace by 'importlib.metadata.version' and the
lighter-weight 'packaging.version.parse'.
2023-01-22 19:26:00 -05:00
Ray Speth
3b6be9b4de [CI] Update action versions to resolve warnings 2023-01-21 17:43:37 -06:00
Ray Speth
c94f556a4e [CI] Fix mambaforge setup 2023-01-21 17:43:37 -06:00
Ray Speth
58a5c6a1a8 [Delegator] Improve error messages when return types are missing 2023-01-21 17:43:37 -06:00
Ray Speth
0392d6553e [SCons] Avoid unnecessary rebuilds of wheel
Fixes a regression introduced in 0958f7cf.
2023-01-21 17:43:37 -06:00
Ray Speth
a84bc03866 [CI] Print GCC version on Ubuntu builders 2023-01-21 17:43:37 -06:00
Ray Speth
8fcebbc762 [CI] Fix build failures with Python 3.8 on windows-2022 image 2023-01-21 17:43:37 -06:00
Ray Speth
49c06fd679 Fix inclusion of function arguments in Sphinx docs
Resolves #1408
2023-01-21 17:43:37 -06:00
Ray Speth
7515ecc5b1 Improve error messages for unimplemented ExtensibleRate methods 2023-01-21 17:43:37 -06:00
Ray Speth
c336f2470d Update documentation for ExtensibleRate 2023-01-21 17:43:37 -06:00
Ray Speth
19d55aa426 Test ExtensibleRate memory management 2023-01-21 17:43:37 -06:00
Ray Speth
5e5e7dfd23 Remove need for prefixing required delegates 2023-01-21 17:43:37 -06:00
Ray Speth
8ece96fb2e Make custom_reaction.py example more robust
Much of the difference between cases was coming from taking different
numbers of timesteps based on small rounding errors. Running over a
range of different initial conditions and calculating stats on a
"per timestep" basis helps isolate the effect of the user-defined
reactions.
2023-01-21 17:43:37 -06:00
Ray Speth
199c98b300 [Python] Allow use of '__slots__' in Extensible classes 2023-01-21 17:43:37 -06:00
Ray Speth
f687bfdbf7 Implement ExtensibleRateData for Python interface 2023-01-21 17:43:37 -06:00
Ray Speth
2e65ab1ed5 Allow Solution to hold references to external wrappers 2023-01-21 17:43:37 -06:00
Sergey Torokhov
760b0fb4b0 [SCons] add AR config option (e.g. to set llvm-ar instead of ar)
Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
2023-01-20 20:07:39 -06:00
bangshiuh
1fa20b7b75 [interface, thermo] fix PlasmaPhase by adding the inheritance 2023-01-15 11:35:27 -06:00
Ray Speth
cb514cdcd5 Fix compareThermo test for PlasmaPhase 2023-01-15 11:35:27 -06:00
bangshiuh
2f9abcfa73 make more functions NotImplemented for PlasmaPhase 2023-01-15 11:35:27 -06:00
bangshiuh
a1d393087b delete unused except +translate_exception 2023-01-15 11:35:27 -06:00