name = 'WRF'
version = '3.8.0'

homepage = 'http://www.wrf-model.org'
description = """The Weather Research and Forecasting (WRF) Model is a next-generation mesoscale
 numerical weather prediction system designed to serve both operational forecasting and atmospheric
 research needs."""

toolchain = {'name': 'intel', 'version': '2016a'}
# don't use agressive optimization, stick to -O2
toolchainopts = {'opt': False}

sources = ['%(name)sV%(version_major_minor)s.TAR.gz']
source_urls = [
    'http://www2.mmm.ucar.edu/wrf/src/',
    'http://www.mmm.ucar.edu/wrf/src/',
]

# csh is used by WRF install scripts
builddependencies = [('tcsh', '6.19.00')]

dependencies = [
    ('JasPer', '1.900.1'),
    ('netCDF', '4.4.0'),
    ('netCDF-Fortran', '4.4.3'),
]

patches = [
    'WRF_parallel_build_fix.patch',
    'WRF_tests_limit-runtimes.patch',
    'WRF-%(version)s_netCDF-Fortran_separate_path.patch',
]

# limit parallel build to 20
maxparallel = 20

buildtype = "dmpar"
versionsuffix = '-%s' % buildtype

moduleclass = 'geo'
