name = 'PETSc'
version = '3.6.1'
versionsuffix = '-Python-2.7.9'

homepage = 'http://www.mcs.anl.gov/petsc'
description = """PETSc, pronounced PET-see (the S is silent), is a suite of data structures and routines for the
 scalable (parallel) solution of scientific applications modeled by partial differential equations."""

toolchain = {'name': 'intel', 'version': '2015b'}
toolchainopts = {'usempi': True, 'pic': True}

#configopts = "--with-scientificpython"

source_urls = ['http://ftp.mcs.anl.gov/pub/petsc/release-snapshots']
sources = [SOURCELOWER_TAR_GZ]

patches = ['PETSc_ranlib-fix.patch']

local_parmetis = 'ParMETIS'
local_parmetis_ver = '4.0.3'
dependencies = [
    ('Boost', '1.58.0', versionsuffix),
    ('FIAT', '1.6.0', versionsuffix),
    ('METIS', '5.1.0'),
    (local_parmetis, local_parmetis_ver),
    ('ScientificPython', '2.9.4', versionsuffix),
    ('SCOTCH', '6.0.3'),
    ('SuiteSparse', '4.4.3', '-%s-%s' % (local_parmetis, local_parmetis_ver)),
    ('Hypre', '2.10.0b'),
]

sanity_check_paths = {
    'files': [''],
    'dirs': ['bin', 'include']
}

builddependencies = [('CMake', '3.0.0')]

moduleclass = 'numlib'
