xref: /petsc/config/examples/arch-ci-linux-pkgs-64idx.py (revision f26daa2dd43308ededd540b13f6e6b6347241d27)
1*f26daa2dSSatish Balay#!/usr/bin/env python
2*f26daa2dSSatish Balay
3*f26daa2dSSatish Balayimport os
4*f26daa2dSSatish Balaypetsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs')
5*f26daa2dSSatish Balayif not os.path.isdir(petsc_hash_pkgs): os.mkdir(petsc_hash_pkgs)
6*f26daa2dSSatish Balay
7*f26daa2dSSatish Balayconfigure_options = [
8*f26daa2dSSatish Balay  '--package-prefix-hash='+petsc_hash_pkgs,
9*f26daa2dSSatish Balay  'COPTFLAGS=-g -O',
10*f26daa2dSSatish Balay  'FOPTFLAGS=-g -O',
11*f26daa2dSSatish Balay  'CXXOPTFLAGS=-g -O',
12*f26daa2dSSatish Balay  '--with-64-bit-indices=1',
13*f26daa2dSSatish Balay  '--download-openmpi=1', #download-mpich works - but system mpich gives wierd errors with superlu_dist+parmeits [with shared/64-bit-indices]?
14*f26daa2dSSatish Balay  '--download-metis=1',
15*f26daa2dSSatish Balay  '--download-parmetis=1',
16*f26daa2dSSatish Balay  '--download-pastix=1',
17*f26daa2dSSatish Balay  '--download-ptscotch=1',
18*f26daa2dSSatish Balay  '--download-hypre=1',
19*f26daa2dSSatish Balay  '--download-hypre-configure-arguments=--enable-bigint=no --enable-mixedint=yes', # HYPRE with mixed integers
20*f26daa2dSSatish Balay  '--download-superlu_dist=1',
21*f26daa2dSSatish Balay  '--donwload-suitesparse=1',
22*f26daa2dSSatish Balay  '--download-cmake',  # superlu_dist requires a newer cmake
23*f26daa2dSSatish Balay  '--download-p4est=1',
24*f26daa2dSSatish Balay  '--with-zlib=1',
25*f26daa2dSSatish Balay  ]
26*f26daa2dSSatish Balay
27*f26daa2dSSatish Balayif __name__ == '__main__':
28*f26daa2dSSatish Balay  import sys,os
29*f26daa2dSSatish Balay  sys.path.insert(0,os.path.abspath('config'))
30*f26daa2dSSatish Balay  import configure
31*f26daa2dSSatish Balay  configure.petsc_configure(configure_options)
32