Skip to content

Commit

Permalink
Merge pull request easybuilders#19062 from hajgato/of102023a
Browse files Browse the repository at this point in the history
{cae}[foss/2023a] OpenFOAM 10 w/ CGAL 5.6 and ParaView 5.11.2
  • Loading branch information
boegel authored Oct 28, 2023
2 parents bc3ddc7 + 8591910 commit 4b4afda
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 0 deletions.
26 changes: 26 additions & 0 deletions easybuild/easyconfigs/c/CGAL/CGAL-5.6-GCCcore-12.3.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
easyblock = 'CMakeMake'
name = 'CGAL'
version = '5.6'

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': 'GCCcore', 'version': '12.3.0'}
toolchainopts = {'strict': True}

source_urls = ['https://github.com/CGAL/cgal/releases/download/v%(version)s/']
sources = [SOURCE_TAR_XZ]
checksums = ['dcab9b08a50a06a7cc2cc69a8a12200f8d8f391b9b8013ae476965c10b45161f']

builddependencies = [
('CMake', '3.26.3'),
('binutils', '2.40'),
]

sanity_check_paths = {
'files': ['include/CGAL/Simple_cartesian.h'],
'dirs': ['include/CGAL', 'lib/cmake/CGAL'],
}

moduleclass = 'numlib'
36 changes: 36 additions & 0 deletions easybuild/easyconfigs/o/OpenFOAM/OpenFOAM-10-foss-2023a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name = 'OpenFOAM'
version = '10'

homepage = 'https://www.openfoam.org/'
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': '2023a'}

source_urls = ['https://github.com/OpenFOAM/OpenFOAM-%(version_major)s/archive']
sources = ['version-%(version)s.tar.gz']
patches = ['OpenFOAM-%(version)s-ThirdParty.patch']
checksums = [
{'version-10.tar.gz': '59d712ba798ca44b989b6ac50bcb7c534eeccb82bcf961e10ec19fc8d84000cf'},
{'OpenFOAM-10-ThirdParty.patch': '307df0206cdb24533f4974378843332064f4a2d85cf0638c20fc4c87b1524b43'},
]

builddependencies = [
('Bison', '3.8.2'),
('CMake', '3.26.3'),
('flex', '2.6.4'),
]

dependencies = [
('ncurses', '6.4'),
# OpenFOAM requires 64 bit METIS using 32 bit indexes (array indexes)
('METIS', '5.1.0'),
('SCOTCH', '7.0.3'),
('CGAL', '5.6'),
('ParaView', '5.11.2'),
('gnuplot', '5.4.8'),
]

moduleclass = 'cae'
70 changes: 70 additions & 0 deletions easybuild/easyconfigs/p/ParaView/ParaView-5.11.2-foss-2023a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
easyblock = 'CMakeMake'

name = 'ParaView'
version = '5.11.2'

homepage = 'https://www.paraview.org'
description = "ParaView is a scientific parallel visualizer."

toolchain = {'name': 'foss', 'version': '2023a'}
toolchainopts = {'pic': True, 'usempi': True}

local_download_suffix = 'download.php?submit=Download&version=v%(version_major_minor)s&type=source&os=all&downloadFile='
source_urls = ['https://www.paraview.org/paraview-downloads/%s' % local_download_suffix]
sources = ["%(name)s-v%(version)s.tar.gz"]
patches = ['ParaView-5.11.1-remove_glew_init_warning.patch']
checksums = [
{'ParaView-v5.11.2.tar.gz': 'ddee336075f8c258a3d34eb1cdd2f4d46a5082f0b4af614e36b06e530f3b346f'},
{'ParaView-5.11.1-remove_glew_init_warning.patch':
'dd86134f3a5b2c1b834224c69665dd31f99ef7d367688fe77dbaada212758710'},
]

builddependencies = [('CMake', '3.26.3')]

dependencies = [
('Python', '3.11.3'),
('SciPy-bundle', '2023.07'),
('Boost', '1.82.0'),
('XZ', '5.4.2'),
('HDF5', '1.14.0'),
('netCDF', '4.9.2'),
('libdrm', '2.4.115'),
('Mesa', '23.1.4'),
('Qt5', '5.15.10'),
('zlib', '1.2.13'),
('FFmpeg', '6.0'),
('Szip', '2.1.1'),
]

_copts = [
# Basic configuration
'-DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON',
'-DPARAVIEW_BUILD_SHARED_LIBS=ON',
'-DPARAVIEW_USE_MPI=ON',
'-DPARAVIEW_ENABLE_FFMPEG=ON',
'-DPARAVIEW_USE_PYTHON=ON',
'-DPython3_ROOT_DIR=$EBROOTPYTHON',
# Useful input formats
'-DPARAVIEW_ENABLE_XDMF2=ON',
'-DPARAVIEW_ENABLE_XDMF3=ON',
# EGL, X and Mesa
'-DOPENGL_glu_LIBRARY=$EBROOTLIBGLU/lib/libGLU.%s' % SHLIB_EXT,
'-DOPENGL_INCLUDE_DIR=$EBROOTMESA/include',
'-DEGL_INCLUDE_DIR=$EBROOTLIBGLVND/include',
'-DEGL_LIBRARY=$EBROOTLIBGLVND/lib/libEGL.%s' % SHLIB_EXT,
'-DEGL_opengl_LIBRARY=$EBROOTLIBGLVND/libOpenGL.%s' % SHLIB_EXT,
'-DVTK_OPENGL_HAS_EGL=ON',
'-DVTK_USE_X=ON',
'-DVTK_OPENGL_HAS_OSMESA=OFF']
configopts = ' '.join(_copts)

sanity_check_paths = {
'files': ['bin/paraview', 'bin/pvserver', 'bin/pvpython'],
'dirs': ['include/paraview-%(version_major_minor)s', 'lib/python%(pyshortver)s/site-packages'],
}

sanity_check_commands = ['python -c "import paraview"']

modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}

moduleclass = 'vis'

0 comments on commit 4b4afda

Please sign in to comment.