1#!/usr/bin/env python3 2 3import os 4petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs') 5 6configure_options = [ 7 '--package-prefix-hash='+petsc_hash_pkgs, 8 '--with-debugging=0', 9 'CC=gcc', 10 'CXX=g++', 11 'FC=gfortran', 12 '--with-mpi-include=/usr/include/mpich', 13 '--with-mpi-lib=-L/usr/lib/x86_64-linux-gnu -lmpichfort -lmpi', 14 '--download-f2cblaslapack=1', 15 '--download-slepc=1', 16 '--download-hpddm=1', 17 '--with-precision=__float128', 18 '--with-clanguage=cxx', 19 '--with-mpi-f90module-visibility=0', 20 ] 21 22if __name__ == '__main__': 23 import sys,os 24 sys.path.insert(0,os.path.abspath('config')) 25 import configure 26 configure.petsc_configure(configure_options) 27