Skip to content

Commit

Permalink
Merge pull request easybuilders#18363 from Micket/20230721164126_new_…
Browse files Browse the repository at this point in the history
…pr_OpenFOAMv2306

{cae}[foss/2022b] OpenFOAM vv2306
  • Loading branch information
branfosj authored Jan 11, 2024
2 parents 04c30b8 + 96b4232 commit ac1327d
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# - Add mplibEASYBUILDMPI configuration for wmake (OpenMPI version)
#
# author: Jiri Furst <Jiri.Furst@gmail.com>
--- /dev/null 2023-03-06 18:30:28.397302047 +0100
+++ OpenFOAM-v2212/wmake/rules/General/mplibEASYBUILDMPI 2023-03-10 14:52:38.100740228 +0100
@@ -0,0 +1,6 @@
+#------------------------------------------------------------------------------
+# Use openmpi mpicc to obtain settings - mpicc must be available
+
+include $(GENERAL_RULES)/mpi-mpicc-openmpi
+
+#------------------------------------------------------------------------------
47 changes: 47 additions & 0 deletions easybuild/easyconfigs/o/OpenFOAM/OpenFOAM-v2306-foss-2022b.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name = 'OpenFOAM'
version = 'v2306'

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': '2022b'}
# Users have found that vectorizion caused OpenFOAM to produce some very incorrect results.
# Disabling vectorize was confirmed to fix the the known issues.
# With no test suite, sticking to known working toolchain options until proven otherwise.
toolchainopts = {'usempi': True, 'cstd': 'c++14', 'vectorize': False}

source_urls = ['https://sourceforge.net/projects/openfoam/files/%(version)s/']
sources = [SOURCE_TGZ]
patches = [
('OpenFOAM-v2206-cleanup.patch', 1),
('OpenFOAM-v2212-wmake-OpenMPI.patch', 1),
]
checksums = [
{'OpenFOAM-v2306.tgz': 'd7fba773658c0f06ad17f90199565f32e9bf502b7bb03077503642064e1f5344'},
{'OpenFOAM-v2206-cleanup.patch': '25333124581acae57c173587de4ebd6e143b894b1a26e4f0326db8b7e0cb1972'},
{'OpenFOAM-v2212-wmake-OpenMPI.patch': '4f5110e98df1f057dc4b478a004e4ae2dc5cc763899f0d3ceb6773315c5c8ba9'},
]

builddependencies = [
('Bison', '3.8.2'),
('CMake', '3.24.3'),
('flex', '2.6.4'),
('CGAL', '5.5.2'), # header only
]

dependencies = [
('libreadline', '8.2'),
('ncurses', '6.3'),
# OpenFOAM requires 64 bit METIS using 32 bit indexes (array indexes)
('METIS', '5.1.0'),
('SCOTCH', '7.0.3'),
('KaHIP', '3.14'),
('Boost', '1.81.0'),
('ParaView', '5.11.1'),
('gnuplot', '5.4.6'),
]

moduleclass = 'cae'

0 comments on commit ac1327d

Please sign in to comment.