py-petsc4py

Versions: [3.15.1, 3.15.2, 3.15.3, 3.15.4, 3.16.0, 3.16.1, 3.16.2, 3.16.3, 3.18.1]

py-petsc4py

Download        : docker pull ghcr.io/autamus/py-petsc4py
Compressed Size : 204MB

Description

This package provides Python bindings for the PETSc package.

Usage

Pull (Download)

To download the latest version of py-petsc4py run,

docker pull ghcr.io/autamus/py-petsc4py:latest

or to download a specific version of py-petsc4py run,

docker pull ghcr.io/autamus/py-petsc4py:3.15.1

Run

To run the container as an application run,

docker run --rm ghcr.io/autamus/py-petsc4py py-petsc4py --version

or to run the container in an interactive session run,

docker run -it --rm ghcr.io/autamus/py-petsc4py bash

Mounting volumes between the container and your machine

To access files from your machine within the py-petsc4py container you’ll have to mount them using the -v external/path:internal/path option.

For example,

docker run -v ~/Documents/Data:/Data ghcr.io/autamus/py-petsc4py py-petsc4py /Data/myData.csv

which will mount the ~/Documents/Data directory on your computer to the /Data directory within the container.

HPC

If you’re looking to use this container in an HPC environment we recommend using Singularity-HPC to use the container just as any other module on the cluster. Check out the SHPC py-petsc4py container here.