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-make-np=8', 9 '--with-cc=cc', 10 '--with-cxx=CC', 11 '--with-fc=ftn', 12 #'--with-debugging=0', 13 #'--COPTFLAGS=-g -O3', 14 #'--CXXOPTFLAGS=-g -O3', 15 #'--FOPTFLAGS=-g -O3', 16 '--LDFLAGS=-dynamic', 17 '--LIBS=-lstdc++', 18 '--download-chaco=1', 19 '--download-metis=1', 20 '--download-parmetis=1', 21 '--with-hdf5=1', 22 '--with-netcdf-dir='+os.environ['CRAY_NETCDF_HDF5PARALLEL_PREFIX'], 23 '--with-pnetcdf-dir='+os.environ['CRAY_PARALLEL_NETCDF_PREFIX'], 24 '--with-zlib=1', 25 '--with-batch=1', 26 '--known-mpi-long-double=1', 27 '--known-mpi-int64_t=1', 28 '--known-mpi-c-double-complex=1', 29 '--known-64-bit-blas-indices=0', 30] 31 32if __name__ == '__main__': 33 import sys,os 34 sys.path.insert(0,os.path.abspath('config')) 35 import configure 36 configure.petsc_configure(configure_options) 37