name = 'OpenFOAM'
version = '2.2.0'

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 complex fluid flows
 involving chemical reactions, turbulence and heat transfer, 
 to solid dynamics and electromagnetics."""

toolchain = {'name': 'ictce', 'version': '4.1.13'}

source_urls = ['http://downloads.sourceforge.net/foam/%(version)s']
sources = [
    SOURCE_TGZ,
    'ThirdParty-%(version)s.tgz',
]

patches = [
    'cleanup-OpenFOAM-%(version)s.patch',
    'OpenFOAM-%(version)s_libreadline.patch',
    ('cleanup-ThirdParty-%(version)s.patch', ".."),  # patch should not be applied in OpenFOAM subdir
]

dependencies = [
    ('libreadline', '6.2'),
    ('SCOTCH', '6.0.0_esmumps'),
    ('ncurses', '5.9'),
]

builddependencies = [('flex', '2.5.37')]

moduleclass = 'cae'
