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 'COPTFLAGS=-g -O', 9 'FOPTFLAGS=-g -O', 10 'CXXOPTFLAGS=-g -O', 11 '--download-openblas', 12 '--download-openblas-64-bit-blas-indices=1', 13 '--download-openblas-make-options=TARGET=GENERIC', 14 '--with-strict-petscerrorcode', 15 ] 16 17if __name__ == '__main__': 18 import sys,os 19 sys.path.insert(0,os.path.abspath('config')) 20 import configure 21 configure.petsc_configure(configure_options) 22