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/x86_64-linux-gnu/mpich', 13 '--with-mpi-lib=-L/usr/lib/x86_64-linux-gnu -lmpichfort -lmpich', 14 '--download-f2cblaslapack=1', 15 '--download-slepc=1', 16 '--download-hpddm=1', 17 '--with-precision=__float128', 18 '--with-clanguage=cxx', 19 '--with-mpi-ftn-module=mpi_f08', 20 '--with-strict-petscerrorcode', 21 '--with-coverage', 22 ] 23 24if __name__ == '__main__': 25 import sys,os 26 sys.path.insert(0,os.path.abspath('config')) 27 import configure 28 configure.petsc_configure(configure_options) 29