Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

PETSc Docker Image

Docker image for PETSc and SLEPc.

Build

To build the Docker image run:

make

Usage

Derive your image from rlincoln/petsc and use the environment variables:

FROM rlincoln/petsc

ADD petsc1.c /root/petsc1.c
WORKDIR /root
RUN gcc -g -v \
  -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi \
  -I$PETSC_DIR/include -I$PETSC_DIR/$PETSC_ARCH/include \
  -L/usr/lib -L$PETSC_DIR/$PETSC_ARCH/lib \
  petsc1.c -lpetsc -lmpi

RUN mpirun -np 2 ./a.out
Docker Pull Command
Owner
rlincoln
Source Repository

Comments (0)