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`
# TODO:
- Only initialize system matrix and r.h.s. vector on root rank in netflow.py
- 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:
sys.exit(1)
# 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.")
sys.exit(1)
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