Skip to content
Snippets Groups Projects
Commit 1cf79ba8 authored by Damian Alvarez's avatar Damian Alvarez
Browse files

Merge branch 'ESMF' into '2022'

ESMF

See merge request hps-public/easybuild-repository!1151
parents a04f00a2 d7352a8f
No related branches found
No related tags found
No related merge requests found
name = 'ESMF'
version = '8.2.0'
homepage = 'https://www.earthsystemcog.org/projects/esmf/'
description = """The Earth System Modeling Framework (ESMF) is software for building and coupling weather,
climate, and related models.
"""
toolchain = {'name': 'gpsmkl', 'version': '2021b'}
toolchainopts = {'usempi': True, 'openmp': True, 'cstd': 'c++11', 'pic': True}
source_urls = ['https://github.com/esmf-org/esmf/archive/']
sources = ['%%(name)s_%s.tar.gz' % '_'.join(version.split('.'))]
patches = [
'psmpi_lmpifort.patch',
]
checksums = [
'3693987aba2c8ae8af67a0e222bea4099a48afe09b8d3d334106f9d7fc311485', # ESMF_8_2_0.tar.gz
'6a73efa223312e8036a99d27a75250e89a72d5eb732a617b5e751e12f6c322a5', # psmpi_lmpifort.patch
]
dependencies = [
('netCDF', '4.8.1'),
('netCDF-Fortran', '4.5.3'),
('netCDF-C++4', '4.3.1'),
]
# ESMF ignores xxFLAGS
preconfigopts = 'export ESMF_BOPT="O" && '
preconfigopts += 'export ESMF_OPTLEVEL="2" && '
# disable errors from GCC 10 on mismatches between actual and dummy argument lists (GCC 9 behaviour)
prebuildopts = 'ESMF_F90COMPILEOPTS="${ESMF_F90COMPILEOPTS} -fallow-argument-mismatch"'
buildopts = 'ESMF_NETCDF_INCLUDE=$EBROOTNETCDFMINFORTRAN/include '
buildopts += 'ESMF_NETCDF_LIBS="`nc-config --libs` `nf-config --flibs` `ncxx4-config --libs`"'
preinstallopts = 'export ESMF_CXXLINKOPTS="-lmpifort" && '
# too parallel causes the build to become really slow
maxparallel = 8
moduleclass = 'geo'
--- esmf/build_config/Linux.intel.default/build_rules.mk.orig 2016-04-25 17:31:54.667689000 +0200
+++ esmf/build_config/Linux.intel.default/build_rules.mk 2016-04-25 17:32:22.991830000 +0200
@@ -45,6 +45,7 @@ ifeq ($(ESMF_COMM),mpich2)
# Mpich2 ---------------------------------------------------
ESMF_F90DEFAULT = mpif90
ESMF_CXXDEFAULT = mpicxx
+ESMF_CXXLINKLIBS += -lmpifort
ESMF_MPIRUNDEFAULT = mpirun $(ESMF_MPILAUNCHOPTIONS)
ESMF_MPIMPMDRUNDEFAULT = mpiexec $(ESMF_MPILAUNCHOPTIONS)
else
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment