-
Notifications
You must be signed in to change notification settings - Fork 772
{geo}[foss/2021b] TELEMAC-MASCARET v8p3r1 w/ Python 3.9.6 #16274
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
Merged
jfgrimm
merged 4 commits into
easybuilders:develop
from
boegel:20220921114317_new_pr_TELEMAC-MASCARET8p3r1
Oct 20, 2022
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
954022b
adding easyconfigs: TELEMAC-MASCARET-8p3r1-foss-2021b.eb
boegel 0b891ae
enhance sanity check for TELEMAC
boegel da87936
enhance sanity check command to make sure that TELEMAC example test c…
boegel 7b731cb
clean up TELEMAC-MASCARET easyconfig based on suggestions by @jfgrimm
boegel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
86 changes: 86 additions & 0 deletions
86
easybuild/easyconfigs/t/TELEMAC-MASCARET/TELEMAC-MASCARET-8p3r1-foss-2021b.eb
This file contains hidden or 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,86 @@ | ||
| easyblock = 'Binary' | ||
|
|
||
| name = 'TELEMAC-MASCARET' | ||
| version = '8p3r1' | ||
|
|
||
| homepage = 'http://www.opentelemac.org' | ||
| description = """TELEMAC-MASCARET is an integrated suite of solvers for use in the field of free-surface flow. Having | ||
| been used in the context of many studies throughout the world, it has become one of the major standards in its field.""" | ||
|
|
||
| toolchain = {'name': 'foss', 'version': '2021b'} | ||
| toolchainopts = {'extra_fcflags': "-fallow-invalid-boz"} | ||
|
|
||
| source_urls = ['https://gitlab.pam-retd.fr/otm/telemac-mascaret/-/archive/v%(version)s/'] | ||
| sources = ['telemac-mascaret-v%(version)s.tar.gz'] | ||
| checksums = ['e37ae6b7eefca0e544c6431308e43828d439be08701356814dd1e04ca762fb7d'] | ||
|
|
||
| dependencies = [ | ||
| ('Python', '3.9.6'), | ||
| ('SciPy-bundle', '2021.10'), # provides numpy, scipy | ||
| ('matplotlib', '3.4.3'), | ||
| ('HDF5', '1.12.1'), | ||
| ('METIS', '5.1.0'), | ||
| ('SCOTCH', '6.1.2'), | ||
| ('MUMPS', '5.4.1', '-metis'), | ||
| ] | ||
|
|
||
| extract_sources = True | ||
| unpack_options = '--strip-components=1' | ||
|
|
||
| buildininstalldir = True | ||
|
|
||
| install_cmd = "export HOMETEL=$PWD && " | ||
| # add Python scripts to $PATH and $PYTHONPATH | ||
| install_cmd += "export PATH=$HOMETEL/scripts/python3/:$PATH && " | ||
| install_cmd += "export PYTHONPATH=$HOMETEL/scripts/python3:$PYTHONPATH && " | ||
| # force python to flush its output | ||
| install_cmd += "export PYTHONUNBUFFERED=1 && " | ||
|
|
||
| # export LD_LIBRARY_PATH=$HOMETEL/builds/$USETELCFG/wrap_api/lib:$LD_LIBRARY_PATH | ||
| # export PYTHONPATH=$HOMETEL/builds/$USETELCFG/wrap_api/lib:$PYTHONPATH | ||
|
|
||
| install_cmd += "cp $HOMETEL/configs/systel.edf.cfg $HOMETEL/configs/systel.easybuild.cfg && " | ||
| install_cmd += "sed -i 's/S9.gfortran/easybuild/g' $HOMETEL/configs/systel.easybuild.cfg && " | ||
| # strip out use of AED, GOTM, MED (optional dependencies) | ||
| install_cmd += "sed -i 's/\(^[a-z]*_aed:\).*/\\1/g' $HOMETEL/configs/systel.easybuild.cfg && " | ||
| install_cmd += "sed -i 's/\(^[a-z]*_gotm:\).*/\\1/g' $HOMETEL/configs/systel.easybuild.cfg && " | ||
| install_cmd += "sed -i 's/\(^[a-z]*_med:\).*/\\1/g' $HOMETEL/configs/systel.easybuild.cfg && " | ||
| # replace -O2 with desired compiler options | ||
| install_cmd += 'sed -i "s/-O2/$F90FLAGS/g" $HOMETEL/configs/systel.easybuild.cfg && ' | ||
| # fix linker option for BLAS | ||
| install_cmd += 'sed -i "s/ -lblas/ $LIBBLAS/g" $HOMETEL/configs/systel.easybuild.cfg && ' | ||
| # downgrade Fortran compiler error to warning | ||
| install_cmd += "sed -i 's/^fflags_gfo:/fflags_gfo: -fallow-invalid-boz/g' $HOMETEL/configs/systel.easybuild.cfg && " | ||
| install_cmd += "export SYSTELCFG=$HOMETEL/configs/systel.easybuild.cfg && " | ||
| install_cmd += "export USETELCFG=easybuild && " | ||
|
|
||
| install_cmd += "export SCALAPACKHOME=$EBROOTSCALAPACK && " | ||
| install_cmd += "export METISHOME=$EBROOTMETIS && " | ||
| install_cmd += "export SCOTCHHOME=$EBROOTSCOTCH && " | ||
| install_cmd += "export MUMPSHOME=$EBROOTMUMPS && " | ||
| install_cmd += "export HDF5HOME=$EBROOTHDF5 && " | ||
| install_cmd += "config.py && compile_telemac.py -j %(parallel)s" | ||
|
|
||
| sanity_check_paths = { | ||
| 'files': ['builds/easybuild/bin/telemac2d', 'builds/easybuild/bin/telemac3d', | ||
| 'builds/easybuild/lib/libtelemac2d.%s' % SHLIB_EXT, 'builds/easybuild/lib/libtelemac3d.%s' % SHLIB_EXT], | ||
| 'dirs': ['scripts/python3'], | ||
| } | ||
|
|
||
| sanity_check_commands = [ | ||
| "tmpdir=$(mktemp -d) && cp -a %(installdir)s/examples/telemac2d/gouttedo $tmpdir/ && chmod -R u+w $tmpdir && " | ||
| "cd $tmpdir/gouttedo && telemac2d.py t2d_gouttedo.cas", | ||
| ] | ||
|
|
||
| modextrapaths = { | ||
| 'LD_LIBRARY_PATH': 'builds/easybuild/lib', | ||
| 'PATH': 'scripts/python3', | ||
| 'PYTHONPATH': 'scripts/python3', | ||
| } | ||
|
|
||
| modextravars = { | ||
| 'SYSTELCFG': '%(installdir)s/configs/systel.easybuild.cfg', | ||
| 'USETELCFG': 'easybuild', | ||
| } | ||
|
|
||
| moduleclass = 'geo' | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.