-
Notifications
You must be signed in to change notification settings - Fork 791
{geo}[gompi/2024a] WRF-SFIRE vW4.4-S0.1 w/ dmpar #25506
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
base: develop
Are you sure you want to change the base?
Changes from 5 commits
51bbadb
96a8718
c355f63
dce003d
192533e
9914ce2
ba10bbf
6132119
cad54b8
dc8bda1
80ddf44
824af25
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| easyblock = 'EB_WRF' | ||
|
|
||
| name = 'WRF-SFIRE' | ||
| version = 'W4.4-S0.1' | ||
| buildtype = "dmpar" | ||
| runtest = False # The default EB_WRF tests are not all compatible with SFIRE | ||
| versionsuffix = '-%s' % buildtype | ||
|
|
||
| homepage = 'https://wiki.openwfm.org/' | ||
| description = """WRF-SFIRE is a coupled atmosphere-fire model based on the Weather Research and | ||
| Forecasting (WRF) model. It simulates the spread of wildland fire and its complex | ||
| interactions with the atmosphere, including fire-atmosphere feedbacks.""" | ||
|
|
||
| toolchain = {'name': 'gompi', 'version': '2024a'} | ||
|
|
||
| # Using git to download with submodules | ||
| sources = [{ | ||
| 'filename': '%(name)s-%(version)s.tar.gz', | ||
| 'git_config': { | ||
| 'url': 'https://github.com/openwfm', | ||
| 'repo_name': 'WRF-SFIRE', | ||
| 'tag': '%(version)s', | ||
| 'recursive': True, | ||
| 'keep_git_dir': True, | ||
| } | ||
| }] | ||
|
|
||
| #Commented for now as everytime gives a diferent checksum | ||
| #checksums = {"c0e850deed7bc44ef03c2be4604d203656995f8e0a152ad1df93a03c480b5531"} | ||
|
|
||
| dependencies = [ | ||
| ('netCDF', '4.9.2'), | ||
| ('HDF5', '1.14.5'), | ||
| ('netCDF-Fortran', '4.6.1'), | ||
| ('JasPer', '4.2.4'), | ||
| ('libpng', '1.6.43'), | ||
| ('zlib', '1.3.1'), | ||
| ] | ||
|
|
||
| builddependencies = [ | ||
| ('binutils', '2.42'), | ||
| ('tcsh', '6.24.13'), | ||
| ] | ||
|
|
||
| # Configuration for the WRF configure script | ||
| preconfigopts = """export NETCDF=$EBROOTNETCDFMINFORTRAN && | ||
| export NETCDF_FORTRAN=$EBROOTNETCDFMINFORTRAN && | ||
| export C_INCLUDE_PATH=$EBROOTNETCDF/include:$EBROOTNETCDFMINFORTRAN/include:$C_INCLUDE_PATH && | ||
| export LDFLAGS="-L$EBROOTNETCDF/lib -L$EBROOTNETCDFMINFORTRAN/lib" && | ||
| export HDF5=$EBROOTHDF5 && | ||
| export PHDF5=$EBROOTHDF5 && """ | ||
| preconfigopts += """export WRFIO_GRIB2=1 && | ||
| export JASPERLIB=$EBROOTJASPER/lib && | ||
| export JASPERINC=$EBROOTJASPER/include && """ | ||
|
|
||
| # Selecting option 35 (GNU with DM-parallel) and 1 (basic nesting) in configure | ||
| configopts = "<<<$'35\\n1\\n' && sed -i 's/^FC[[:space:]]*=[[:space:]]*time/FC = /' configure.wrf" | ||
|
|
||
| #The configure file for aarch architectures has much less options | ||
| if ARCH == 'aarch64': | ||
| configopts = "<<<$'3\\n1\\n' && sed -i 's/^FC[[:space:]]*=[[:space:]]*time/FC = /' configure.wrf" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ooof, this is quite cryptic (so is the Any chance we can make this more readable, or use a patch file, or at the very least break it down step-by-step and adding comments?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just added a cleaner look with the commented options on how would it look if we did it with a patch, thing is using a patch is not trivial as it needs to be applied right afte the configure step and im not sure if it will be the same patch for all architectures, the ways of the configure.wrf file are complicated |
||
|
|
||
| # The default EB_WRF tests are not all compatible with SFIRE | ||
| skipsteps = ['test'] | ||
|
|
||
| # 20 is the maximum allowed | ||
| maxparallel = 16 | ||
|
|
||
| modextravars = { | ||
| 'NETCDF': '$EBROOTNETCDF', | ||
| 'NETCDF_FORTRAN': '$EBROOTNETCDFMINFORTRAN', | ||
| 'HDF5': '$EBROOTHDF5', | ||
| 'PHDF5': '$EBROOTHDF5', | ||
| } | ||
|
|
||
|
|
||
| sanity_check_paths = { | ||
| 'files': ['WRF-SFIRE/main/%s' % x for x in ['wrf.exe', 'real.exe', 'ideal.exe', 'ndown.exe', 'libwrflib.a']], | ||
| 'dirs': ['WRF-SFIRE/main', 'WRF-SFIRE/run'] | ||
| } | ||
| moduleclass = 'geo' | ||
Uh oh!
There was an error while loading. Please reload this page.