1#!/usr/bin/env python 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 '--with-precision=__float128', 16 '--with-clanguage=cxx', 17 '--with-mpi-f90module-visibility=0', 18 ] 19 20if __name__ == '__main__': 21 import sys,os 22 sys.path.insert(0,os.path.abspath('config')) 23 import configure 24 configure.petsc_configure(configure_options) 25