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=yes', 10 'COPTFLAGS=-g -O', 11 'FOPTFLAGS=-g -O', 12 'CXXOPTFLAGS=-g -O', 13 '--with-clanguage=c', 14 '--with-shared-libraries=no', 15 '--with-scalar-type=real', 16 '--with-64-bit-indices=yes', 17 '--with-precision=__float128', 18 '--download-mpich', 19 '--download-f2cblaslapack', 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