1#!/usr/bin/env python 2 3import os 4petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs') 5if not os.path.isdir(petsc_hash_pkgs): os.mkdir(petsc_hash_pkgs) 6 7configure_options = [ 8 '--package-prefix-hash='+petsc_hash_pkgs, 9 '--with-debugging=0', 10 'CC=gcc', 11 'CXX=g++', 12 'FC=gfortran', 13 '--with-mpi-include=/usr/include/mpich', 14 '--with-mpi-lib=-L/usr/lib/x86_64-linux-gnu -lmpichf90 -lmpi', 15 '--download-f2cblaslapack=1', 16 '--with-precision=__float128', 17 '--with-clanguage=cxx', 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