-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update version * Attempt to use brew instead * Try removing arm logic * Switch deployment target * Try ignoring version * Put version back * Update code to match pybamm * Update submodule url (#21) * Revert a change * Update docs
- Loading branch information
Showing
7 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "pybind11"] | ||
path = pybind11 | ||
url = git@github.com:pybind/pybind11.git | ||
url = https://github.com/pybind/pybind11.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,48 @@ | ||
# IDAKLU solver | ||
|
||
Standalone repository for the IDAKLU solver used in PyBaMM | ||
Standalone repository for the C/C++ solvers used in PyBaMM | ||
|
||
## Installation | ||
|
||
```bash | ||
pip install pybammsolvers | ||
``` | ||
|
||
## Solvers | ||
|
||
The following solvers are available: | ||
- PyBaMM's IDAKLU solver | ||
|
||
## Local builds | ||
|
||
For testing new solvers and unsupported architectures, local builds are possible. | ||
|
||
### Nox | ||
|
||
Nox can be used to do a quick build: | ||
```bash | ||
pip install nox | ||
nox | ||
``` | ||
This will setup an environment and attempt to build the library. | ||
|
||
### MacOS | ||
|
||
Mac dependencies can be installed using brew | ||
```bash | ||
brew install libomp | ||
brew reinstall gcc | ||
python install_KLU_Sundials.py | ||
pip install . | ||
``` | ||
|
||
### Linux | ||
|
||
Linux installs may vary based on the distribution, however, the basic build can | ||
be performed with the following commands: | ||
```bash | ||
sudo apt-get libopenblas-dev gcc gfortran make g++ build-essential | ||
pip install cmake casadi setuptools wheel | ||
python install_KLU_Sundials.py | ||
pip install . | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.0.4" | ||
__version__ = "0.0.5" |