Commit 9d1a15fc authored by sfritschi's avatar sfritschi
Browse files

Changed installation procedure of petsc

parent f6846d90
......@@ -2,5 +2,8 @@
Parallelization of core functions in the netflow Python library.
PETSc installation:
`./configure --with-cc=/usr/bin/mpicc --with-cxx=/usr/bin/mpicxx --with-fc=0 --download-hypre`
- Only initialize system matrix and r.h.s. vector on root rank in
- Install PETSc on Euler and test program
import os, sys
import shutil
from setuptools import Extension, setup
from Cython.Build import cythonize
......@@ -15,10 +16,10 @@ except KeyError:
# MPI compiler bundled with petsc
mpi = PETSC_DIR + "/" + PETSC_ARCH + "/bin/mpicc"
mpi = "mpicc"
if not os.path.isfile(mpi):
print("Missing mpicc: Please install petsc together with openmpi.")
if shutil.which(mpi) == None:
print("Missing mpicc: Please install openmpi first.")
compile_args = []
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment