Skip to content

Commit

Permalink
Merge pull request easybuilders#18932 from xinan1911/20231006105516_n…
Browse files Browse the repository at this point in the history
…ew_pr_waLBerla61

{chem}[foss/2021a] waLBerla v6.1
  • Loading branch information
bedroge authored Nov 13, 2023
2 parents f15cc8e + e6a32a5 commit 711e23e
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
48 changes: 48 additions & 0 deletions easybuild/easyconfigs/w/waLBerla/waLBerla-6.1-foss-2021a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# easyconfig file for waLBerla v6.1
easyblock = 'CMakeMake'

name = 'waLBerla'
version = '6.1'

homepage = "https://walberla.net/index.html"
description = """Widely applicable Lattics-Boltzmann from Erlangen is a
block-structured high-performance framework for multiphysics simulations"""

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

source_urls = ['https://i10git.cs.fau.de/walberla/walberla/-/archive/v6.1']
sources = ['%(name)s-v%(version)s.tar.gz']
patches = ['waLBerla-6.1_fix_cmakelist_for_easybuild.patch']
checksums = [
{'waLBerla-v6.1.tar.gz': 'f0acdd9ad6543bc9306c8aae953dd5065986271d4398916ae0469db8b21c007a'},
{'waLBerla-6.1_fix_cmakelist_for_easybuild.patch':
'057066d07294e8f159c2545d2d5f9138d439dbb54bc70eb75eca1f82ae650c47'},
]

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

dependencies = [
('pybind11', '2.6.2'),
('Python', '3.9.5'),
('Boost.MPI', '1.76.0'),
('SciPy-bundle', '2021.05'),
]

parallel = 1

configopts = "-DWALBERLA_BUILD_WITH_PYTHON=ON "
configopts += "-DWALBERLA_BUILD_SHOWCASES=OFF "
configopts += "-DWALBERLA_BUILD_DOC=OFF "
configopts += "-DPython_ROOT_DIR=$EBROOTPYTHON "

modextrapaths = {'PYTHONPATH': ['pythonmodule']}

sanity_check_paths = {
'files': ['waLBerlaDefinitions.h', 'pythonmodule/walberla_cpp.cpython-39-x86_64-linux-gnu.so'],
'dirs': ['pythonmodule']
}

sanity_check_commands = [('python', "-c 'import waLBerla'")]

moduleclass = 'chem'
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff -ruN walberla-v6.1.orig/CMakeLists.txt walberla-v6.1/CMakeLists.txt
--- walberla-v6.1.orig/CMakeLists.txt 2023-10-17 13:06:02.619565000 +0200
+++ walberla-v6.1/CMakeLists.txt 2023-10-26 19:28:03.622447001 +0200
@@ -1313,8 +1313,10 @@
configure_file ( src/waLBerlaDefinitions.in.h
src/waLBerlaDefinitions.h )

-install( FILES ${walberla_BINARY_DIR}/src/waLBerlaDefinitions.h DESTINATION walberla/ )
-
+install( FILES ${walberla_BINARY_DIR}/src/waLBerlaDefinitions.h DESTINATION . )
+install( DIRECTORY ${walberla_BINARY_DIR}/apps/pythonmodule/ DESTINATION pythonmodule/ )
+install( DIRECTORY ${walberla_BINARY_DIR}/apps/benchmarks/ DESTINATION benchmarks/ )
+install( DIRECTORY ${walberla_BINARY_DIR}/apps/tutorials/ DESTINATION tutorials/ )

# test
if ( WALBERLA_BUILD_TESTS )

0 comments on commit 711e23e

Please sign in to comment.