# IT4Innovations 2019

easyblock = 'ConfigureMake'

name = 'libMesh'
version = '1.3.0'

homepage = 'http://libmesh.github.io/'
description = """The libMesh library provides a framework for the numerical simulation of partial differential equations
 using arbitrary unstructured discretizations on serial and parallel platforms. A major goal of the library is to
 provide support for adaptive mesh refinement (AMR) computations in parallel while allowing a research scientist
  to focus on the physics they are modeling."""

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

source_urls = [
    'https://github.com/libMesh/libmesh/releases/download/v%(version)s/',
]

sources = [SOURCELOWER_TAR_GZ]

configopts = " --with-metis=PETSc"

dependencies = [
        #('ParMETIS', '4.0.3'),
        ('Boost', '1.68.0'),
        ('PETSc' ,'3.7.5', '-it4i'),
]

sanity_check_paths = {
    'files': ['bin/meshtool-opt'],
    'dirs': ['bin'],
}

moduleclass = 'lib'
