Skip to main content

PETSc GEMSEO interface

Project description

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.rst file.

Contributors

  • François Gallard

  • Jean-Christophe Giret

  • Antoine Dechaume

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gemseo-petsc-3.0.0.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

gemseo_petsc-3.0.0-py2.py3-none-any.whl (12.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file gemseo-petsc-3.0.0.tar.gz.

File metadata

  • Download URL: gemseo-petsc-3.0.0.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for gemseo-petsc-3.0.0.tar.gz
Algorithm Hash digest
SHA256 0a10f512237c841ed9e7a2eeadbd2f96047a6ab3a8ae13c2f8408385ac424da5
MD5 ae588a1b8b91b13d63382e103fd181aa
BLAKE2b-256 acf78ff3be314dc588e85567d3469317a06f532292b28497aec13cdff32f3c6a

See more details on using hashes here.

File details

Details for the file gemseo_petsc-3.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for gemseo_petsc-3.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 39133e80df1fef216b93d2632cee3eaa00d13f686aff34ea3f1f6a62291d63da
MD5 f01d3ded8469456be9f38b2de0367037
BLAKE2b-256 0b242f6ec42096cf90c9e56ca915348a2a013279cdc6303cc899b8e6e0090c1d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page