Commit Graph

9867 Commits

Author SHA1 Message Date
Ray Speth
2fafee813d Drop support for Python 3.7 2022-11-21 09:00:30 -06:00
Ray Speth
b0f141e9cd Replace usage of internal '_PyNamespace_New' function
This function was removed from Python.h in Python 3.11. See
https://github.com/python/cpython/pull/28970
2022-11-21 09:00:30 -06:00
Ingmar Schoegl
577455cf14 [CI] Probe different SCons versions 2022-11-04 09:32:05 -05:00
Ingmar Schoegl
18784fd9a8 [SCons] Fix logic and improve logging 2022-11-04 09:32:05 -05:00
Bryan Weber
ce75be4e15 [SCons] Integrate MSVC options introduced in SCons 4.4.0
- Include changes suggested by jcbrill
2022-11-04 09:32:05 -05:00
Ray Speth
9f4e644285 [CI] Save HTML coverage report for .NET interface 2022-11-03 19:37:50 -05:00
Ray Speth
923a52dddf [CI] Collect coverage info for .NET 2022-11-03 19:37:50 -05:00
Ray Speth
3ddcea649a [CI] Test .NET interface 2022-11-03 19:37:50 -05:00
Ray Speth
bae69c00d4 Fix sourcegen compatibility with Python 3.8 2022-11-03 19:37:50 -05:00
Corey R. Randall
f1d86d1b08 Update test/python/test_kinetics.py
Co-authored-by: Ingmar Schoegl <ischoegl@lsu.edu>
2022-10-09 20:06:06 -05:00
Corey R. Randall
7cccb0cbb6 Update src/kinetics/InterfaceKinetics.cpp
Co-authored-by: Ingmar Schoegl <ischoegl@lsu.edu>
2022-10-09 20:06:06 -05:00
Corey R. Randall
e539bff7b7 Update test/python/test_kinetics.py
Co-authored-by: Ingmar Schoegl <ischoegl@lsu.edu>
2022-10-09 20:06:06 -05:00
Corey Randall
03b60bd7b7 update C++ syntax to comply with community conventions 2022-10-09 20:06:06 -05:00
Corey Randall
ba5d5f892d modified syntax for consistency with other code, added comment for interface_current 2022-10-09 20:06:06 -05:00
Corey Randall
9fa8d30ab4 removed unneeded constants import from cython interface kinetics.pyx file 2022-10-09 20:06:06 -05:00
Corey Randall
3262435b8b updated interface_current and test to be written in C++ 2022-10-09 20:06:06 -05:00
Corey Randall
84a643c6b5 interface_current method and accompanying test added 2022-10-09 20:06:06 -05:00
Ray Speth
332bb9b9d9 Fix compiler warnings identified by Clang 14.0 2022-09-29 16:02:27 -05:00
Ray Speth
cbeaf0c5ff Fix compiler warnings from VS2019 2022-09-29 16:02:27 -05:00
Ray Speth
e20a57acfb Fix Python package build on Windows with setuptools >= 65.4.0
For some reason, setuptools thinks it needs to be able to find the user's
home directory to build a wheel, but on Windows this relies on an environment
variable (USERPROFILE) that we weren't by default passing in through SCons.
2022-09-29 16:02:27 -05:00
Bryan Weber
7684653bb2 [CI] Fix running examples by ignoring warnings
Matplotlib 3.6.0 introduced a new incidental warning which has nothing
to do with our code. This change ignores that warning so other warnings
can still be caught.
2022-09-28 21:01:46 -04:00
Ingmar Schoegl
488bd1a3ab [samples] Fix regression in diffusion_flame_batch.py
Remove code introduced in #1394
2022-09-28 21:01:46 -04:00
Ingmar Schoegl
760ea59edd [oneD] Ensure Python API passes Solutions to boundaries 2022-09-28 21:01:46 -04:00
Ingmar Schoegl
3dfb13e8be [oneD] Add Solution to ReactingSurf1D objects 2022-09-28 21:01:46 -04:00
Ingmar Schoegl
67dcc9f808 [oneD] Remove deprecated Inlet1D.h 2022-09-28 21:01:46 -04:00
bangshiuh
55ec7960be [oneD] use enum for constants 2022-09-27 14:47:57 -05:00
Ray Speth
f6744eca05 Make dimensionalization of IAPWS95 EOS consistent
The nondimensional EOS should always be dimensionalized to a mass
basis using the value of R given in the original source. Values on
a molar basis can then be computed consistently using the best available
value for the molecular weight of water.

Partially resolves #1315
2022-09-25 16:54:39 -04:00
Ray Speth
959c9cb817 Fix internal energy scaling in WaterSSTP
Partially resolves #1315
2022-09-25 16:54:39 -04:00
Ingmar Schoegl
0cd37f0bb0 [CI] Disable Fortran for OneAPI runners
Unit tests fail for optimized LAPACK libraries (see #1393)
2022-09-24 21:36:53 -04:00
Ingmar Schoegl
51627cd22c [CI] Add libraries to test SCons system_blas_lapack 2022-09-24 21:36:53 -04:00
Ingmar Schoegl
a6bdf4d7f4 [SCons] Rename locate_lapack to system_blas_lapack 2022-09-24 21:36:53 -04:00
Ingmar Schoegl
9ccd75ce8b [SCons] Tweak locate_lapack=auto settings 2022-09-24 21:36:53 -04:00
Ingmar Schoegl
f900321d78 [SCons] Add standard 'lapack,blas' to 'locate_lapack' option 2022-09-24 21:36:53 -04:00
Ingmar Schoegl
b21405a3b6 [SCons] Add auto-detection of MKL and OpenBLAS
* Add logic for Sundials BLAS/LAPACK support
* Disable MKL / OpenBLAS detection by default
2022-09-24 21:36:53 -04:00
Ingmar Schoegl
b915c85906 [SCons] Disable Fortran for Apple clang by default
On Apple Silicon, the combination of gfortran with Apple clang compilers
causes hard crashes for F90 examples, see #1379. Changing the default
avoids this issue; users can override by passing 'f90_interface=y' to
SCons. Short-term, the change also bypasses a recently introduced
linking issue on macOS, see #1387.
2022-09-23 09:49:49 -04:00
Ray Speth
5e15f57af8 Make Python extensions compatible with venv 2022-09-11 10:59:30 -04:00
Ray Speth
7ace1bc40f Update documentation of "version added" 2022-09-11 10:59:30 -04:00
Ray Speth
ad78ce5aba Test error conditions for ExtensibleRate 2022-09-11 10:59:30 -04:00
Ray Speth
567f5d96e6 [CI] Switch to Homebrew Python on macOS
This avoids weird linker issues where the GitHub Actions Python
required linkage to libintl but the only available version of
libintl, installed in Homebrew, was targeting a different macOS
version.
2022-09-11 10:59:30 -04:00
Ray Speth
82a76e8a81 Ensure registration of extension rates in host Cantera library
If a user application is linked statically to the Cantera library,
ExtensibleRate objects need to be registered in this copy of the Cantera
library rather than the one that is embedded in the Python module.
This is achieved by accessing the ReactionRateFactory from the main
application rather than from the Python module.
2022-09-11 10:59:30 -04:00
Ray Speth
242a4fef1e Improve handling of dynamic library paths on Mac/Windows 2022-09-11 10:59:30 -04:00
Ray Speth
2462fab75b Set PYTHONHOME when embedding Python on Windows
Without this, the default Python path is not populated correctly,
and is based on the path to the user's executable instead.
2022-09-11 10:59:30 -04:00
Ray Speth
330f08b8eb Improve error reporting during python extension module initialization 2022-09-11 10:59:30 -04:00
Ray Speth
61f26881fd Get ExtensibleRate to work on Windows GitHub Actions 2022-09-11 10:59:30 -04:00
Ray Speth
dc36ad395f Add library directory containing libpython3.x 2022-09-11 10:59:30 -04:00
Ray Speth
58af2ea06e Add more documentation for ExtensibleRate 2022-09-11 10:59:30 -04:00
Ray Speth
c2243429d8 Update custom_reaction example to also show ExtensibleRate 2022-09-11 10:59:30 -04:00
Ray Speth
fe82aafe38 Add C++ test for Python ExtensibleRate 2022-09-11 10:59:30 -04:00
Ray Speth
71ac8d0c9d Provide user-defined name for ExtensibleRate objects 2022-09-11 10:59:30 -04:00
Ray Speth
d1988418e1 Handle sharing of ExtensibleRate among copies of ReactionRateDelegator 2022-09-11 10:59:30 -04:00