# IT4Innovations 2019

name = 'OpenFOAM'
version = 'v1812'

homepage = 'http://www.openfoam.com/'
description = """OpenFOAM is a free, open source CFD software package.
 OpenFOAM has an extensive range of features to solve anything from local_complex fluid flows
 involving chemical reactions, turbulence and heat transfer,
 to solid dynamics and electromagnetics."""

toolchain = {'name': 'foss', 'version': '2018a'}
toolchainopts = {'cstd': 'c++11'}

source_urls = ['https://sourceforge.net/projects/openfoamplus/files/%(version)s/']
sources = [SOURCE_TGZ]
patches = ['OpenFOAM-%(version)s-cleanup.patch']
checksums = [
    'd4d23d913419c6a364b1fe91509c1fadb5661bdf2eedb8fe9a8a005924eb2032',  # OpenFOAM-v1812.tgz
    'a01098181f7ac2a332623b7060bacde03d6ab5479d458189d4934d9f64389f4d',  # OpenFOAM-v1812-cleanup.patch
]

dependencies = [
    ('libreadline', '7.0', '', True),
    ('ncurses', '6.0', '', True),
    # OpenFOAM requires 64 bit METIS using 32 bit indexes (array indexes)
    ('METIS', '5.1.0', '', True),
    ('SCOTCH', '6.0.6'),
    ('CGAL', '4.11.1'),
    ('ParaView', '5.4.1', '-mpi'),
]

builddependencies = [
    ('Bison', '3.3.2', '', True),
    ('CMake', '3.13.1', '', True),
    ('flex', '2.6.4', '', True),
]

moduleclass = 'cae'
