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

{cae}[foss/2021a] OpenFOAM v2106 #13266

Merged
Show file tree
Hide file tree
Changes from 7 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
37 changes: 37 additions & 0 deletions easybuild/easyconfigs/c/CGAL/CGAL-4.14.3-gompi-2021a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name = 'CGAL'
version = '4.14.3'

homepage = 'https://www.cgal.org/'
description = """The goal of the CGAL Open Source Project is to provide easy access to efficient
and reliable geometric algorithms in the form of a C++ library."""

toolchain = {'name': 'gompi', 'version': '2021a'}
toolchainopts = {'strict': True}

source_urls = ['https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-%(version)s']
sources = [SOURCE_TAR_XZ]
checksums = ['5bafe7abe8435beca17a1082062d363368ec1e3f0d6581bb0da8b010fb389fe4']

builddependencies = [
('CMake', '3.20.1'),
('Eigen', '3.3.9'),
]

dependencies = [
('zlib', '1.2.11'),
('Python', '3.9.5'),
('Boost', '1.76.0'),
('MPFR', '4.1.0'),
('GMP', '6.2.1'),
('Mesa', '21.1.1'),
('libGLU', '9.0.1'),
('Qt5', '5.15.2'),
]

configopts = "-DOPENGL_INCLUDE_DIR=$EBROOTMESA/include\;$EBROOTLIBGLU/include "
configopts += "-DOPENGL_gl_LIBRARY=$EBROOTMESA/lib/libGL.%s " % SHLIB_EXT
configopts += "-DOPENGL_glu_LIBRARY=$EBROOTLIBGLU/lib/libGLU.%s " % SHLIB_EXT
configopts += "-DWITH_ZLIB=ON -DWITH_MPFR=ON -DWITH_OpenGL=ON -DWITH_Eigen3=ON "
configopts += "-DWITH_GMPXX=ON -DWITH_LAPACK=ON -DWITH_BLAS=ON "

moduleclass = 'numlib'
37 changes: 37 additions & 0 deletions easybuild/easyconfigs/l/libcerf/libcerf-1.15-GCCcore-10.3.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
##
# Author: Robert Mijakovic <[email protected]>
##
easyblock = 'CMakeMake'

name = 'libcerf'
version = '1.15'

homepage = 'https://jugit.fz-juelich.de/mlz/libcerf'

description = """
libcerf is a self-contained numeric library that provides an efficient and
accurate implementation of complex error functions, along with Dawson,
Faddeeva, and Voigt functions.
"""

toolchain = {'name': 'GCCcore', 'version': '10.3.0'}
toolchainopts = {'pic': True}

source_urls = ['https://jugit.fz-juelich.de/mlz/libcerf/-/archive/v%(version)s/']
sources = ['libcerf-v%(version)s.tar.gz']
checksums = ['a5d45475e08d431267fd29d6af987a9dd9b6792578ec3feb466d4d21f2844868']

builddependencies = [
('binutils', '2.36.1'),
('CMake', '3.20.1'),
('Perl', '5.32.1'), # required for pod2html
]

separate_build_dir = True

branfosj marked this conversation as resolved.
Show resolved Hide resolved
sanity_check_paths = {
'files': ['lib/libcerf.%s' % SHLIB_EXT],
'dirs': []
}

moduleclass = 'math'
45 changes: 45 additions & 0 deletions easybuild/easyconfigs/o/OpenFOAM/OpenFOAM-v2106-foss-2021a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
##
# Author: Robert Mijakovic <[email protected]>
##
name = 'OpenFOAM'
version = 'v2106'

homepage = 'https://www.openfoam.com/'
description = """OpenFOAM is a free, open source CFD software package.
OpenFOAM has an extensive range of features to solve anything from complex fluid flows
involving chemical reactions, turbulence and heat transfer,
to solid dynamics and electromagnetics."""

toolchain = {'name': 'foss', 'version': '2021a'}
toolchainopts = {'cstd': 'c++11'}

source_urls = ['https://sourceforge.net/projects/openfoam/files/%(version)s/']
sources = [SOURCE_TGZ]
patches = [
('OpenFOAM-v2012-cleanup.patch', 1),
'OpenFOAM-v1906-wmake-ompi.patch',
]
checksums = [
'11e41e5b9a253ef592a8f6b79f6aded623b28308192d02cec1327078523b5a37', # OpenFOAM-v2106.tgz
'cdd2597a1ac1448e9bd33a364a8dfe17f51cc9ab5a8e0ab67cf92bba3ed9da43', # OpenFOAM-v2012-cleanup.patch
'518e27683c5c41400cfbc17b31effa50b31b25916dccbf85b18b0b955f642505', # OpenFOAM-v1906-wmake-ompi.patch
]

dependencies = [
('libreadline', '8.1'),
('ncurses', '6.2'),
# OpenFOAM requires 64 bit METIS using 32 bit indexes (array indexes)
('METIS', '5.1.0'),
('SCOTCH', '6.1.0'),
('CGAL', '4.14.3'),
('ParaView', '5.9.1', '-mpi'),
('gnuplot', '5.4.2'),
]

builddependencies = [
('Bison', '3.7.6'),
('CMake', '3.20.1'),
('flex', '2.6.4'),
]

moduleclass = 'cae'