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-cc=mpiicc', 14 '--with-cxx=mpiicpc', 15 '--with-fc=mpiifort', 16 '--with-mpiexec=mpiexec.hydra', 17 # Intel compilers enable GCC/clangs equivalent of -ffast-math *by default*. This is 18 # bananas, so we make sure they use the same model as everyone else 19 'COPTFLAGS=-g -O -fp-model=precise', 20 'FOPTFLAGS=-g -O -fp-model=precise', 21 'CXXOPTFLAGS=-g -O -fp-model=precise', 22 '--with-precision=single', 23 '--with-blaslapack-dir='+os.environ['MKLROOT'], 24 '--with-mkl_pardiso-dir='+os.environ['MKLROOT'], 25 '--with-mkl_cpardiso-dir='+os.environ['MKLROOT'], 26 '--download-superlu_dist', 27 '--download-metis', 28 '--download-parmetis', 29 '--download-hypre', 30 '--with-strict-petscerrorcode', 31 ] 32 configure.petsc_configure(configure_options) 33