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

{numlib}[foss/2023a] preCICE v3.1.1 #20408

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
65 changes: 65 additions & 0 deletions easybuild/easyconfigs/p/preCICE/preCICE-3.1.1-foss-2023a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
easyblock = 'CMakeMake'

name = 'preCICE'
version = '3.1.1'

homepage = 'https://www.precice.org/'
description = """preCICE (Precise Code Interaction Coupling Environment)
is a coupling library for partitioned multi-physics simulations,
including, but not restricted to fluid-structure interaction and
conjugate heat transfer simulations. Partitioned means that preCICE
couples existing programs (solvers) capable of simulating a subpart of
the complete physics involved in a simulation. This allows for the high
flexibility that is needed to keep a decent time-to-solution for complex
multi-physics scenarios."""

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

source_urls = ['https://github.com/precice/precice/archive']
sources = ['v%(version)s.tar.gz']
checksums = ['fe759293942ebc9cb2e6127f356a8c795ab7383c1b074595994ebc92466e478d']

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

dependencies = [
('Python', '3.11.3'),
('Boost', '1.82.0'),
('Eigen', '3.4.0'),
('libxml2', '2.11.4'),
('PETSc', '3.20.3'),
('SciPy-bundle', '2023.07'),
]

separate_build_dir = True
build_shared_libs = True

# Tell pkg-config to keep flags available in CPATH and others because it prevents CMake from finding PETSc correctly
preconfigopts = 'PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 '
# Make sure MPI support is enabled
configopts = '-DPRECICE_MPICommunication=ON '
# Make sure PETSc support is enabled
configopts += '-DPRECICE_PETScMapping=ON '
# Make sure PythonActions support is enabled
configopts += "-DPYTHON_INCLUDE_DIR=$EBROOTPYTHON/include/python%(pyshortver)s "
configopts += "-DPYTHON_LIBRARY=$EBROOTPYTHON/lib/libpython%%(pyshortver)s.%s " % SHLIB_EXT
configopts += '-DPRECICE_PythonActions=ON '
# force Eigen include directory which is not found correctly otherwise
configopts += '-DEIGEN3_INCLUDE_DIR="$EBROOTEIGEN/include"'

# Run basic tests
# runtest = ' test_base'
bedroge marked this conversation as resolved.
Show resolved Hide resolved

sanity_check_paths = {
'files': ['bin/precice-tools', 'bin/precice-profiling'] +
['include/precice/%s' % x for x in ['export.h', 'preciceC.h', 'precice.hpp',
'Tooling.hpp', 'Version.h', 'Participant.hpp',
'preciceFortran.hpp', 'span.hpp', 'Types.hpp']] +
['lib/libprecice.%s' % SHLIB_EXT],
'dirs': [],
}

moduleclass = 'numlib'