Skip to content

Commit

Permalink
Merge pull request #22 from vub-hpc/2023a
Browse files Browse the repository at this point in the history
add easyconfigs of CESM-deps and CESM for foss/2023a
  • Loading branch information
wpoely86 authored Jun 19, 2024
2 parents fc11b6f + e57c960 commit f87e9b3
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,8 @@ is executed.

Loads all dependencies to build and run CESM cases.

* [CESM-deps-2-foss-2022a.eb](easyconfigs/CESM-deps/CESM-deps-2-foss-2022a.eb)

* available in Hortense
* available in Hydra
* [CESM-deps-2-foss-2022a.eb](easyconfigs/CESM-deps/CESM-deps-2-foss-2022a.eb): available in Hortense, Hydra
* [CESM-deps-2-foss-2023a.eb](easyconfigs/CESM-deps/CESM-deps-2-foss-2023a.eb): available in Hydra

Our easyconfigs of CESM-deps are based on those available in
[EasyBuild](https://github.com/easybuilders/easybuild-easyconfigs/tree/master/easybuild/easyconfigs/c/CESM-deps).
Expand All @@ -296,9 +294,8 @@ configuration files.
Loads CESM-deps plus software commonly used to analyse the results of the
simulations.

* [CESM-2-foss-2022a.eb](easyconfigs/CESM/CESM-2-foss-2022a.eb):

* available in Hydra
* [CESM-2-foss-2022a.eb](easyconfigs/CESM/CESM-2-foss-2022a.eb): available in Hydra
* [CESM-2-foss-2023a.eb](easyconfigs/CESM/CESM-2-foss-2023a.eb): available in Hydra

## Extra tools

Expand Down
51 changes: 51 additions & 0 deletions easyconfigs/CESM-deps/CESM-deps-2-foss-2023a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
easyblock = 'Bundle'

name = 'CESM-deps'
version = '2'

homepage = 'https://www.cesm.ucar.edu/models/cesm2/'
description = """CESM is a fully-coupled, community, global climate model that
provides state-of-the-art computer simulations of the Earth's past, present,
and future climate states."""

# The following environment is suitable for CESM >= 2.2.2 and CTSM >= 5.2.0
toolchain = {'name': 'foss', 'version': '2023a'}

dependencies = [
('CMake', '3.26.3'),
('Python', '3.11.3'),
('lxml', '4.9.2'),
('Perl', '5.36.1'),
('XML-LibXML', '2.0209'),
('ESMF', '8.6.0'),
('netCDF', '4.9.2'),
('netCDF-Fortran', '4.6.1'),
('netCDF-C++4', '4.3.1'),
('PnetCDF', '1.12.3'),
('git', '2.41.0', '-nodocs'),
('git-lfs', '3.5.1', '', SYSTEM),
]

components = [
# install extra configuration tools and files for VSC clusters
('cesm-config', '1.7.0', {
'easyblock': 'Tarball',
'source_urls': ['https://github.com/vub-hpc/%(name)s/archive'],
'sources': [{'download_filename': 'v%(version)s.tar.gz', 'filename': SOURCE_TAR_GZ}],
'checksums': ['c5aeb50595ca4d342a5024d593c2549acf16e72dadc5f39d9a7915d3dc8f3c13'],
'start_dir': '%(name)s-%(version)s',
}),
]

sanity_check_paths = {
'files': ['bin/update-cesm-machines', 'scripts/case.pbs', 'scripts/case.slurm'],
'dirs': ['machines', 'irods'],
}

usage = """Environment to build and run CESM v2 simulations
1. Download a release of CESM v2: `git clone -b release-cesm2.2.2 https://github.com/ESCOMP/cesm.git cesm-2.2.2`
2. Add external programs for CESM: `cd cesm-2.2.2; ./manage_externals/checkout_externals`
3. Update config files: `update-cesm-machines cime/config/cesm/machines/ $EBROOTCESMMINDEPS/machines/`
4. Create case: `cd cime/scripts && ./create_newcase --machine ...`"""

moduleclass = 'geo'
19 changes: 19 additions & 0 deletions easyconfigs/CESM/CESM-2-foss-2023a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
easyblock = 'Bundle'

name = 'CESM'
version = '2'

homepage = 'http://www.cesm.ucar.edu/models/cesm2/'
description = "Bundle of tools to perform post-processing tasks on CESM data."

toolchain = {'name': 'foss', 'version': '2023a'}

dependencies = [
('Python', '3.11.3'),
('CESM-deps', '2'),
('NCO', '5.1.9'),
('CDO', '2.2.2'),
('ncview', '2.1.8'),
]

moduleclass = 'geo'

0 comments on commit f87e9b3

Please sign in to comment.