Skip to content

[ESMF] [package list]

ESMF/8.9.1-cpeGNU-26.03-noMPI (ESMF-8.9.1-cpeGNU-26.03-noMPI.eb)

Install with the EasyBuild-user module:

eb ESMF-8.9.1-cpeGNU-26.03-noMPI.eb -r
To access module help after installation and get reminded for which stacks and partitions the module is installed, use module spider ESMF/8.9.1-cpeGNU-26.03-noMPI.

EasyConfig:

# contributed by Luca Marsella (CSCS), Theofilos Manitaras (CSCS)
# Adapted by Kurt Lust (kurt.lust@uantwerpen.be) for the LUMI consortium
#DOC ESMF compiled in mpiuni mode, without support for MPI.
easyblock = 'esmfcray'

local_ESMF_version =         '8.9.1'         # https://github.com/esmf-org/esmf/releases - Candidate for version bump if time left

name =          'ESMF'
version =       local_ESMF_version
version_suffix = '-noMPI'

homepage = 'http://sourceforge.net/projects/esmf'

whatis = [
    'Description: ESMF is the Earth System Modeling Framework, software for coupling weather, climate and related models'
]

description = """
The Earth System Modeling Framework (ESMF) is software for building and coupling weather,
climate, and related models.
 """

software_license_urls = [
    f'https://github.com/esmf-org/esmf/blob/v{version}/LICENSE',
]

toolchain = {'name': 'cpeGNU', 'version': '26.03'}
toolchain_opts = {'usempi': True, 'openmp': True, 'gfortran9-compat': True}

# https://github.com/esmf-org/esmf/archive/refs/tags/v8.3.0.tar.gz
sources = [
    {
        'download_filename': 'v%(version)s.tar.gz',
        'filename':          SOURCE_TAR_GZ,
        'source_urls':       ['https://github.com/esmf-org/esmf/archive/refs/tags']
    }
]
patches = ['ESMF-8.9.1_libopts.patch']
checksums = [
    'e3fafd0c057bf1c3b4c41c997b392016d621b1f1a7c601355c325a7f58425d78',  # ESMF-8.9.1.tar.gz
    '336fe13aeb2a751a43d318393f8a75e2a3c6887bb38a63f769032559eef93760',  # ESMF-8.9.1_libopts.patch
]

mpicomm = 'mpiuni'
optlevel = '2'   # Has to be a string

# Check when compiling a new version if this is still needed.
# It was done to work around issues with recent versions of gfortran.
pre_configure_opts = 'ESMF_F90COMPILEOPTS="$F90FLAGS"'
pre_build_opts  = 'ESMF_F90COMPILEOPTS="$F90FLAGS"'

build_deps = [ # Create a reproducible build environment.
    ('buildtools', '%(toolchain_version)s', '', True),
]

deps = [
    ('cray-hdf5', EXTERNAL_MODULE),
    ('cray-netcdf', EXTERNAL_MODULE),
]

post_install_cmds = [
    'mkdir -p %(installdir)s/share/licenses/%(name)s',
    'cd %(start_dir)s && cp LICENSE README.md %(installdir)s/share/licenses/%(name)s',   
]

# Just a single sanity check command as the other commands generate output files even when simply using
# -h or --version. It should be enough though to check if the executable can find all necessary 
# shared libraries.
sanity_check_cmds = [ 
    'ESMF_PrintInfoC --version',
]

env_mod_category = 'geo'

[ESMF] [package list]