openfoam: remove mplibUSER provisioning (#19861)
- has never been used by the spack package or by the upstream package Co-authored-by: Mark Olesen <Mark.Olesen@esi-group.com>
This commit is contained in:
parent
b1ca2a4346
commit
a90324a5b2
@ -17,9 +17,7 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# Notes
|
# Notes
|
||||||
# - mpi handling: WM_MPLIB=USER and provide wmake rules for special purpose
|
# - mpi handling: WM_MPLIB=USERMPI and generate mplibUSERMPI wmake rules.
|
||||||
# 'USER and 'USERMPI' mpi implementations.
|
|
||||||
# The choice of 'USER' vs 'USERMPI' may change in the future.
|
|
||||||
#
|
#
|
||||||
# Changes
|
# Changes
|
||||||
# 2017-03-28 Mark Olesen <mark.olesen@esi-group.com>
|
# 2017-03-28 Mark Olesen <mark.olesen@esi-group.com>
|
||||||
@ -99,7 +97,7 @@ class FoamExtend(Package):
|
|||||||
# Some user config settings
|
# Some user config settings
|
||||||
config = {
|
config = {
|
||||||
'label-size': False, # <- No int32/int64 support
|
'label-size': False, # <- No int32/int64 support
|
||||||
'mplib': 'USERMPI', # USER | USERMPI
|
'mplib': 'USERMPI', # USERMPI
|
||||||
}
|
}
|
||||||
|
|
||||||
# The openfoam architecture, compiler information etc
|
# The openfoam architecture, compiler information etc
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Original Author: Mark Olesen <mark.olesen@esi-group.com>
|
||||||
|
#
|
||||||
# Legal Notice
|
# Legal Notice
|
||||||
# ------------
|
# ------------
|
||||||
# OPENFOAM is a trademark owned by OpenCFD Ltd
|
# OPENFOAM is a trademark owned by OpenCFD Ltd
|
||||||
@ -20,14 +23,13 @@
|
|||||||
# - The openfoam-org package is a modified version of the openfoam package.
|
# - The openfoam-org package is a modified version of the openfoam package.
|
||||||
# If changes are needed here, consider if they should also be applied there.
|
# If changes are needed here, consider if they should also be applied there.
|
||||||
#
|
#
|
||||||
|
# - mpi handling: WM_MPLIB=SYSTEMMPI and populate prefs.{csh,sh} with values
|
||||||
|
# from spack.
|
||||||
|
#
|
||||||
# - Building with boost/cgal is not included, since some of the logic is not
|
# - Building with boost/cgal is not included, since some of the logic is not
|
||||||
# entirely clear and thus untested.
|
# entirely clear and thus untested.
|
||||||
# - Resolution of flex, zlib needs more attention (within OpenFOAM)
|
# - Resolution of flex, zlib needs more attention (within OpenFOAM)
|
||||||
#
|
#
|
||||||
# - mpi handling: WM_MPLIB=SYSTEMMPI and use spack to populate prefs.sh for it.
|
|
||||||
# Provide wmake rules for special purpose 'USER' and 'USERMPI'
|
|
||||||
# mpi implementations, in case these are required.
|
|
||||||
#
|
|
||||||
# Known issues
|
# Known issues
|
||||||
# - Combining +zoltan with +int64 has not been tested, but probably won't work.
|
# - Combining +zoltan with +int64 has not been tested, but probably won't work.
|
||||||
# - Combining +mgridgen with +int64 or +float32 probably won't work.
|
# - Combining +mgridgen with +int64 or +float32 probably won't work.
|
||||||
@ -129,7 +131,7 @@ class OpenfoamOrg(Package):
|
|||||||
@property
|
@property
|
||||||
def config(self):
|
def config(self):
|
||||||
settings = {
|
settings = {
|
||||||
# Use system mpi for spack
|
# Use SYSTEMMPI since openfoam-org doesn't have USERMPI
|
||||||
'mplib': 'SYSTEMMPI',
|
'mplib': 'SYSTEMMPI',
|
||||||
|
|
||||||
# Add links into bin/, lib/ (eg, for other applications)
|
# Add links into bin/, lib/ (eg, for other applications)
|
||||||
|
@ -20,9 +20,8 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# Notes
|
# Notes
|
||||||
# - mpi handling: WM_MPLIB=USERMPI and use spack to populate an appropriate
|
# - mpi handling: WM_MPLIB=USERMPI and use spack to generate mplibUSERMPI
|
||||||
# configuration and generate wmake rules for 'USER' and 'USERMPI'
|
# wmake rules.
|
||||||
# mpi implementations.
|
|
||||||
#
|
#
|
||||||
# - Resolution of flex, zlib needs more attention (within OpenFOAM)
|
# - Resolution of flex, zlib needs more attention (within OpenFOAM)
|
||||||
# - +paraview:
|
# - +paraview:
|
||||||
@ -359,7 +358,7 @@ class Openfoam(Package):
|
|||||||
|
|
||||||
# Some user config settings
|
# Some user config settings
|
||||||
# default: 'compile-option': '-spack',
|
# default: 'compile-option': '-spack',
|
||||||
# default: 'mplib': 'USERMPI', # Use user mpi for spack
|
# default: 'mplib': 'USERMPI', # User-defined mpi for spack
|
||||||
config = {
|
config = {
|
||||||
# Add links into bin/, lib/ (eg, for other applications)
|
# Add links into bin/, lib/ (eg, for other applications)
|
||||||
'link': False
|
'link': False
|
||||||
@ -978,7 +977,7 @@ def has_rule(self, projdir):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def create_rules(self, projdir, foam_pkg):
|
def create_rules(self, projdir, foam_pkg):
|
||||||
""" Create {c,c++}-spack and mplib{USER,USERMPI}
|
""" Create {c,c++}-spack and mplib{USERMPI}
|
||||||
rules in the specified project directory.
|
rules in the specified project directory.
|
||||||
The compiler rules are based on the respective {c,c++}Opt rules
|
The compiler rules are based on the respective {c,c++}Opt rules
|
||||||
but with additional rpath information for the OpenFOAM libraries.
|
but with additional rpath information for the OpenFOAM libraries.
|
||||||
@ -1019,12 +1018,13 @@ def create_rules(self, projdir, foam_pkg):
|
|||||||
outfile.write('\n')
|
outfile.write('\n')
|
||||||
|
|
||||||
# MPI rules
|
# MPI rules
|
||||||
for mplib in ['mplibUSER', 'mplibUSERMPI']:
|
for mplib in ['mplibUSERMPI']:
|
||||||
with open(mplib, 'w') as out:
|
with open(mplib, 'w') as out:
|
||||||
out.write("""# Use mpi from spack ({name})\n
|
out.write("""# MPI from spack ({name})\n
|
||||||
PFLAGS = {FLAGS}
|
PFLAGS = {FLAGS}
|
||||||
PINC = {PINC}
|
PINC = {PINC}
|
||||||
PLIBS = {PLIBS}
|
PLIBS = {PLIBS}
|
||||||
|
#-------
|
||||||
""".format(**user_mpi))
|
""".format(**user_mpi))
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user