name = 'GROMACS'
version = '5.0.4'
versionsuffix = '-hybrid-single-PLUMED'

homepage = 'http://www.gromacs.org'
description = """GROMACS is a versatile package to perform molecular dynamics,
 i.e. simulate the Newtonian equations of motion for systems with hundreds to millions of particles."""

toolchain = {'name': 'foss', 'version': '2015g'}
toolchainopts = {'openmp': True, 'usempi': True}

patches = ['gromacs-%s-plumed-2.1.3-mpi.patch' % version]

source_urls = ['ftp://ftp.gromacs.org/pub/gromacs/']
sources = [SOURCELOWER_TAR_GZ]

builddependencies = [
    ('CMake', '3.3.1'),  # We are using system CMake
    ('libxml2', '2.9.2'),
    ('almost', '2.1.0'),
    ('libmatheval', '1.1.8')
]

configopts = ' -DGMX_GPU=OFF -DGMX_DOUBLE=OFF -DGMX_SIMD=AVX2_256 '

dependencies = [
    ('Boost', '1.58.0', '-Python-2.7.9'),
    ('almost', '2.1.0'),
    ('libmatheval', '1.1.8'),
]

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

moduleclass = 'bio'
