1#!/usr/bin/env python3 2 3import os 4petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs') 5 6if __name__ == '__main__': 7 import sys 8 import os 9 sys.path.insert(0, os.path.abspath('config')) 10 import configure 11 configure_options = [ 12 '--package-prefix-hash='+petsc_hash_pkgs, 13 '--with-debugging=0', 14 '--with-clanguage=cxx', 15 'COPTFLAGS=-mavx2 -g -O', 16 'CXXOPTFLAGS=-mavx2 -g -O', 17 'FOPTFLAGS=-mavx2 -g -O', 18 '--with-mpi-dir=/nfs/gce/projects/petsc/soft/u22.04/gcc-avx2/mpich-4.0.2', 19 '--with-blaslapack-dir=/nfs/gce/projects/petsc/soft/u22.04/gcc-avx2/fblaslapack-3.4.2-p3', 20 '--with-memalign=64', 21 '--download-metis=1', 22 '--download-parmetis=1', 23 '--download-superlu_dist=1', 24 '--with-strict-petscerrorcode', 25 '--with-coverage', 26 ] 27 configure.petsc_configure(configure_options) 28