-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from vub-hpc/2021b
update for Hortense and CESM-deps/2-foss-2021b
- Loading branch information
Showing
6 changed files
with
246 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
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.""" | ||
|
||
toolchain = {'name': 'foss', 'version': '2021b'} | ||
|
||
dependencies = [ | ||
('CMake', '3.22.1'), | ||
('Python', '3.9.6'), | ||
('lxml', '4.6.3'), | ||
('Perl', '5.34.0'), | ||
('XML-LibXML', '2.0207'), | ||
('ESMF', '8.2.0'), | ||
('netCDF', '4.8.1'), | ||
('netCDF-Fortran', '4.5.3'), | ||
('netCDF-C++4', '4.3.1'), | ||
('PnetCDF', '1.12.3'), | ||
('Subversion', '1.14.1'), | ||
('git', '2.33.1', '-nodocs'), | ||
('git-lfs', '3.2.0', '', True), | ||
] | ||
|
||
components = [ | ||
# install extra configuration tools for CESM | ||
('cesm-config', '1.6.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}], | ||
'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.0 https://github.com/ESCOMP/cesm.git cesm-2.2.0` | ||
2. Add external programs for CESM: `cd cesm-2.2.0; ./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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
#SBATCH --job-name=CESM-case-setupbuild | ||
#SBATCH --output="%x-%j.out" | ||
#SBATCH --time=4:00:00 | ||
#SBATCH --nodes 1 | ||
#SBATCH --ntasks 16 | ||
|
||
module load CESM-deps/2-foss-2021b | ||
|
||
# CESM case setup | ||
echo | ||
./case.setup --reset | ||
./preview_run | ||
|
||
# CESM case build | ||
echo | ||
./case.build |