ngsPETSc
ngsPETSc is an interface between PETSc and NGSolve/NETGEN that enables the use of NETGEN meshes and geometries in PETSc-based solvers while providing NGSolve users access to the wide array of linear, nonlinear solvers, and time-steppers available in PETSc.
Installation
ngsPETSc is available on PyPI.
If you have PETSc installed be sure to set the PETSC_DIR and PETSC_ARCH environment variables to the required values.
You can install by running:
pip install ngsPETSc
Getting started
To get started with ngsPETSc, check out the documentation.
Development
If you already have NGSolve (with MPI support) and PETSc installed, you can install ngsPETSc via pip:
git clone https://github.com/NGSolve/ngsPETSc.git
pip install ./ngsPETSc
Alternatively, you can also build PETSc, SLEPc, and NGSolve from source following the instructions in the documentation.
Testing
To test the installation, you can run the tests in the tests folder, via the Makefile in the root directory of the repository:
make test
Metadata
Release files for ngsPETSc 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ngspetsc-0.3.0.tar.gz | 23.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ngspetsc-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.8 kB
Release files / ngspetsc-0.3.0.tar.gz
| Download URL | ngspetsc-0.3.0.tar.gz |
|---|---|
| Size | 23.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f5529488ec4f3eb0094dc35e16e89d9971aea1ea5cc1dbcc842d1d6dc2c8e58
|
|
BLAKE2b-256 checksum How to use checksums |
873ef559abd689b70068883deb6849bf3e358b615b378364c7fd06ba992a288b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency logRelease files / ngspetsc-0.3.0-py3-none-any.whl
| Download URL | ngspetsc-0.3.0-py3-none-any.whl |
|---|---|
| Size | 27.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd5ebf233582e8d01d481a65f0f2e0867b53cc86dca68efffff1eb5ae95ac53a
|
|
BLAKE2b-256 checksum How to use checksums |
d57dc53b810f2cda1f7899162851a8378c5cbb761f6b4b73c40eb8f2112ba76c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency log