-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from WISDEM/develop
final changes to enable mesonpy and cross compilation
- Loading branch information
Showing
7 changed files
with
61 additions
and
38 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,11 +1,47 @@ | ||
# pyHAMS | ||
|
||
This is a python wrapper for [HAMS](https://github.com/YingyiLiu/HAMS) | ||
This is a python wrapper for [HAMS](https://github.com/YingyiLiu/HAMS), a boundary element method for hydrodynamic analysis of submerged structures. | ||
|
||
Install via: | ||
There is cylinder test case that demonstrates usage and outputs in ``test/test_cylinder.py``. | ||
|
||
``` | ||
pip install . | ||
``` | ||
## Prerequisites | ||
|
||
pyHAMS requires a Fortran compiler. The python wrapper currently supports GNU and Intel compilers. HAMS can be built with Flang, but that is not yet recognized by pyHAMS. | ||
|
||
## Install (as a library) | ||
|
||
To install pyHAMS as a library that can be used by WEIS or RAFT in the backend, you can use either conda or PyPi package management: | ||
|
||
$ pip install pyHAMS | ||
|
||
or | ||
|
||
$ conda install pyHAMS | ||
|
||
|
||
## Install (from source) | ||
|
||
If you would like to build the project locally from source for easier access to the underlying methods and tests, do: | ||
|
||
$ git clone https://github.com/WISDEM/pyHAMS.git | ||
$ cd pyHAMS | ||
$ pip install . | ||
|
||
If developer/editable mode, do the same `git clone` step, but on install do: | ||
|
||
$ pip install --no-build-isolation -e . | ||
|
||
The `--no-build-isolation` option is important per [Meson guidelines](https://meson-python.readthedocs.io/en/latest/how-to-guides/editable-installs.html). Note that this package uses `mesonpy` for an installation backend, so there is no `setup.py` file. | ||
|
||
|
||
## Unit Tests | ||
|
||
$ pytest test | ||
|
||
For software issues please use <https://github.com/WISDEM/pyHAMS/issues>. For theory related questions and comments please use the [HAMS issues page](https://github.com/YingyiLiu/HAMS/issues). | ||
|
||
|
||
## License | ||
|
||
pyHAMS uses the Apache License v2.0 | ||
|
||
Note that this package uses `mesonpy` for an installation backend, so there is no `setup.py` file. |
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,9 +1,3 @@ | ||
option('incdir_numpy', type: 'string', value: '', | ||
description: 'Include directory for numpy. If left empty Meson will try to find it on its own.') | ||
|
||
option('python_target', type: 'string', value: '', | ||
description: '''Target python path. This is used in the case that the Python installation that PyOptSparse is intended | ||
to be built for is different than the Python installation that is used to run Meson. For example, Meson may be installed | ||
on the user's system which is run using the system Python installation, but the user may want build PyOptSparse for | ||
a Python installation in a virtual environment. Leave as an empty string to build for Python installation running | ||
Meson.''') |
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