Skip to content

Commit

Permalink
tweak modloadmsg in RheoTool easyconfig (+ trivial code style tweaks …
Browse files Browse the repository at this point in the history
…w.r.t. single vs double quotes)
  • Loading branch information
boegel committed Aug 25, 2022
1 parent d255a35 commit 634c8a6
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions easybuild/easyconfigs/r/RheoTool/RheoTool-5.0-foss-2019b.eb
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
easyblock = "Binary"
easyblock = 'Binary'

name = "RheoTool"
version = "5.0"
name = 'RheoTool'
version = '5.0'

homepage = "https://github.com/fppimenta/rheoTool"
homepage = 'https://github.com/fppimenta/rheoTool'
description = """RheoTool is an open-source toolbox based on OpenFOAM to simulate Generalized Newtonian Fluids (GNF)
and viscoelastic fluids under pressure-driven and/or electrically-driven flows."""

toolchain = {"name": "foss", "version": "2019b"}
toolchain = {'name': 'foss', 'version': '2019b'}

source_urls = ["https://github.com/fppimenta/rheoTool/archive/refs/tags/"]
sources = ["v%(version)s.tar.gz"]
checksums = ["2e0899684d6d7f9ddee0d93b39a6ed56262b171bc4e5536914645209b66003ed"]
source_urls = ['https://github.com/fppimenta/rheoTool/archive/refs/tags/']
sources = ['v%(version)s.tar.gz']
checksums = ['2e0899684d6d7f9ddee0d93b39a6ed56262b171bc4e5536914645209b66003ed']

dependencies = [
("OpenFOAM", "7", "-20200508"),
("Eigen", "3.3.7", "", True),
("PETSc", "3.12.4", "-Python-3.7.4"),
('OpenFOAM', '7', '-20200508'),
('Eigen', '3.3.7', '', True),
('PETSc', '3.12.4', '-Python-3.7.4'),
]

extract_sources = True


install_cmd = "source $FOAM_BASH && "
install_cmd += "export EIGEN_RHEO=$EBROOTEIGEN && "
install_cmd += "cd of70/src && "
Expand All @@ -35,13 +34,13 @@ install_cmd += "export LD_LIBRARY_PATH=%(installdir)s/lib:$LD_LIBRARY_PATH && "
install_cmd += "./Allwmake -j %(parallel)s "

sanity_check_paths = {
"files": ["bin/rheoBDFoam", "lib/libthermoRheoTool.so"],
"dirs": [],
'files': ['bin/rheoBDFoam', 'lib/libthermoRheoTool.so'],
'dirs': [],
}

# source $FOAM_BASH must run before using RheoTool, otherwise there will be missing libraries
sanity_check_commands = ["source $FOAM_BASH && rheoBDFoam -help"]

modloadmsg = 'Please run command "source $FOAM_BASH " before using RheoTool, otherwise there will be missing libraries.'
modloadmsg = "Please run 'source $FOAM_BASH' before using RheoTool."

moduleclass = "cae"
moduleclass = 'cae'

0 comments on commit 634c8a6

Please sign in to comment.