Commit 2a0456c1 authored by sfritschi's avatar sfritschi
Browse files

Added additional compile flag and updated README

parent 9d1a15fc
......@@ -6,4 +6,4 @@ PETSc installation:
`./configure --with-cc=/usr/bin/mpicc --with-cxx=/usr/bin/mpicxx --with-fc=0 --download-hypre`
# TODO:
- Install PETSc on Euler and test program
- Initialize system only on root for `solve_flow_periodic` as well
......@@ -15,7 +15,7 @@ except KeyError:
print("Environment variables 'PETSC_DIR' and/or 'PETSC_ARCH' not set.")
sys.exit(1)
# MPI compiler bundled with petsc
# MPI C compiler
mpi = "mpicc"
if shutil.which(mpi) == None:
......@@ -23,6 +23,7 @@ if shutil.which(mpi) == None:
sys.exit(1)
compile_args = []
compile_args += ["-std=c99"] # For variable declarations in loop
compile_args += os.popen(mpi + " --showme:compile").read().strip().split(" ")
compile_args += ["-I" + PETSC_DIR + "/include"]
compile_args += ["-I" + PETSC_DIR + "/" + PETSC_ARCH + "/include"]
......
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