Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mozbc WRF preprocessor #197

Merged
merged 1 commit into from
Jul 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions easyconfigs/m/mozbc/mozbc-20230507-foss-2022a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This easyconfig was created by the BEAR Software team at the University of Birmingham
easyblock = "ConfigureMake"

name = 'mozbc'
version = '20230507' # mozbc download date

homepage = 'https://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': 'foss', 'version': '2022a'}

sources = ['%(name)s.tar']
checksums = ['68bd20311f8706865ae83b80f387de1a54118a592c258e21553e8184ee18f92a']

dependencies = [
('netCDF', '4.9.0'),
('netCDF-Fortran', '4.6.0'),
('HDF5', '1.12.2'),
('WRF', '4.4', '-dmpar-chem'),
]

skipsteps = ['configure', 'build']

preinstallopts = "export NETCDF_DIR=$EBROOTNETCDFMINFORTRAN && "
preinstallopts += "export FC=gfortran && "
preinstallopts += "chmod 777 * && "
preinstallopts += "sed -i 's|-ffree-line-length-none|-ffree-line-length-none -fallow-argument-mismatch|g' Makefile && "

install_cmd = "%(builddir)s/make_mozbc"

postinstallcmds = [
"mkdir %(installdir)s/bin",
"mv mozbc %(installdir)s/bin",
"mkdir %(installdir)s/lib",
"mv *.f90 %(installdir)s/lib",
"ln -s %(installdir)s/lib %(installdir)s/lib64",
]

moduleclass = 'geo'