Standalone repository for the C/C++ solvers used in PyBaMM
pip install pybammsolvers
The following solvers are available:
- PyBaMM's IDAKLU solver
For testing new solvers and unsupported architectures, local builds are possible.
Nox can be used to do a quick build:
pip install nox
nox
This will setup an environment and attempt to build the library.
Mac dependencies can be installed using brew
brew install libomp
brew reinstall gcc
git submodule update --init --recurisive
python install_KLU_Sundials.py
pip install .
Linux installs may vary based on the distribution, however, the basic build can be performed with the following commands:
sudo apt-get install libopenblas-dev gcc gfortran make g++ build-essential
pip install cmake casadi setuptools wheel
git submodules update --init --recurisive
python install_KLU_Sundials.py
pip install .