PETSc GEMSEO interface.
Project description
PETSc GEMSEO interface.
This plugin provides an interface to the PETSc linear solvers. They can be used for direct and adjoint linear system resolution in GEMSEO.
Installation
gemseo-petsc relies on petsc4py, the Python bindings for PETSc. PETSc and petsc4py are available on pypi, but no wheel are available. Hence, depending on the initial situation, here are our recommendations:
Linux environment
Using Conda
PETSc and petsc4py are available on the conda-forge repository. If you start from scratch of if you want to install the plugin in a pre-existing conda environment, you can use the following command in your current conda environment before installing gemseo-petsc:
conda install -c conda-forge petsc4py
Using pip
PETSc and petsc4py can be build from their sources by using pip. To do so, use the following commands in your Python environment.
pip install petsc petsc4py
By building PETSc and petsc4py from sources
It is also possible to build PETSc and petsc4py from the PETSc sources. To do so, please follow the information provided in the PETSc installation manual, and do not forget to enable the compilation of petsc4py.
Windows environment
Although it has not be tested, it is possible to build PETSc and petsc4py under a Windows environment, and hence to have the gemseo-petsc plugin working. A description of the procedure to build these dependencies can be found here
Bugs/Questions
Please use the gitlab issue tracker at https://gitlab.com/gemseo/dev/gemseo-petsc/-/issues to submit bugs or questions.
License
The gemseo-petsc source code is distributed under the GNU LGPL v3.0 license. A copy of it can be found in the LICENSE.txt file. The GNU LGPL v3.0 license is an exception to the GNU GPL v3.0 license. A copy of the GNU GPL v3.0 license can be found in the LICENSES folder.
The gemseo-petsc examples are distributed under the BSD 0-Clause, a permissive license that allows to copy paste the code of examples without preserving the copyright mentions.
The gemseo-petsc documentation is distributed under the CC BY-SA 4.0 license.
The gemseo-petsc product depends on other software which have various licenses. The list of dependencies with their licenses is given in the CREDITS.md file.
Contributors
- François Gallard
- Jean-Christophe Giret
- Antoine Dechaume
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file gemseo_petsc-3.0.1-py3-none-any.whl
.
File metadata
- Download URL: gemseo_petsc-3.0.1-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | deac723ab31caf40ba33954096b6430aa5045d681ba36d3b7fee8d42afb856dc |
|
MD5 | b25ee29ce89bcf8b1696381ece4bccb1 |
|
BLAKE2b-256 | 6ca4f885bd78f2a1c90c243dd452df9a5faa0d50222fe553bbbf409d317b7681 |