#!/usr/bin/python3
if __name__ == '__main__':
  import sys
  import os
  sys.path.insert(0, os.path.abspath('config'))
  import configure
  configure_options = [
    '--with-ctetgen-dir=${PETSC_DIR}/master-arch-darwin-c-debug/externalpackages/git.ctetgen',
    '--with-exodusii-dir=${PETSC_DIR}/master-arch-darwin-c-debug/externalpackages/git.exodusii',
    '--with-hdf5-dir=${PETSC_DIR}/master-arch-darwin-c-debug/externalpackages/hdf5-1.12.0',
    '--with-med-dir=${PETSC_DIR}/master-arch-darwin-c-debug/externalpackages/git.med',
    '--with-metis-dir=${PETSC_DIR}/master-arch-darwin-c-debug/externalpackages/git.metis',
    '--with-mpich-dir=${PETSC_DIR}/master-arch-darwin-c-debug/externalpackages/mpich-3.3.2',
    '--with-netcdf-dir=${PETSC_DIR}/master-arch-darwin-c-debug/externalpackages/netcdf-c-4.5.0',
    '--with-parmetis-dir=${PETSC_DIR}/master-arch-darwin-c-debug/externalpackages/git.parmetis',
    '--with-pnetcdf-dir=${PETSC_DIR}/master-arch-darwin-c-debug/externalpackages/git.pnetcdf',
    '--download-tetgen',
    '--with-triangle-dir=${PETSC_DIR}/master-arch-darwin-c-debug/externalpackages/git.triangle',
    '--with-zlib-dir=${PETSC_DIR}/master-arch-darwin-c-debug/externalpackages/zlib-1.2.11',
    '--with-blaslapack',
    '--with-cmake',
    '--with-debugging=1',
    'PETSC_ARCH=arch-linux-c-debug',
  ]
  configure.petsc_configure(configure_options)
