diff options
author | Mark Olesen <Mark.Olesen@gmx.net> | 2020-11-11 17:38:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-11 10:38:50 -0600 |
commit | a90324a5b2cb5d806b29256e7a805375c2eb1165 (patch) | |
tree | 5a144af441dfada0c00177ef9ef00f0ad8fa902f | |
parent | b1ca2a43467e45779e04055c0d7df00f518d049f (diff) | |
download | spack-a90324a5b2cb5d806b29256e7a805375c2eb1165.tar.gz spack-a90324a5b2cb5d806b29256e7a805375c2eb1165.tar.bz2 spack-a90324a5b2cb5d806b29256e7a805375c2eb1165.tar.xz spack-a90324a5b2cb5d806b29256e7a805375c2eb1165.zip |
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>
3 files changed, 16 insertions, 16 deletions
diff --git a/var/spack/repos/builtin/packages/foam-extend/package.py b/var/spack/repos/builtin/packages/foam-extend/package.py index e0c9a5ded9..912426a09f 100644 --- a/var/spack/repos/builtin/packages/foam-extend/package.py +++ b/var/spack/repos/builtin/packages/foam-extend/package.py @@ -17,9 +17,7 @@ ############################################################################## # # Notes -# - mpi handling: WM_MPLIB=USER and provide wmake rules for special purpose -# 'USER and 'USERMPI' mpi implementations. -# The choice of 'USER' vs 'USERMPI' may change in the future. +# - mpi handling: WM_MPLIB=USERMPI and generate mplibUSERMPI wmake rules. # # Changes # 2017-03-28 Mark Olesen <mark.olesen@esi-group.com> @@ -99,7 +97,7 @@ class FoamExtend(Package): # Some user config settings config = { 'label-size': False, # <- No int32/int64 support - 'mplib': 'USERMPI', # USER | USERMPI + 'mplib': 'USERMPI', # USERMPI } # The openfoam architecture, compiler information etc diff --git a/var/spack/repos/builtin/packages/openfoam-org/package.py b/var/spack/repos/builtin/packages/openfoam-org/package.py index 5dc63e56f2..d9bd136b2e 100644 --- a/var/spack/repos/builtin/packages/openfoam-org/package.py +++ b/var/spack/repos/builtin/packages/openfoam-org/package.py @@ -3,6 +3,9 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) +# +# Original Author: Mark Olesen <mark.olesen@esi-group.com> +# # Legal Notice # ------------ # OPENFOAM is a trademark owned by OpenCFD Ltd @@ -20,14 +23,13 @@ # - 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. # +# - 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 # entirely clear and thus untested. # - 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 # - Combining +zoltan with +int64 has not been tested, but probably won't work. # - Combining +mgridgen with +int64 or +float32 probably won't work. @@ -129,7 +131,7 @@ class OpenfoamOrg(Package): @property def config(self): settings = { - # Use system mpi for spack + # Use SYSTEMMPI since openfoam-org doesn't have USERMPI 'mplib': 'SYSTEMMPI', # Add links into bin/, lib/ (eg, for other applications) diff --git a/var/spack/repos/builtin/packages/openfoam/package.py b/var/spack/repos/builtin/packages/openfoam/package.py index 4282f68078..8357497b34 100644 --- a/var/spack/repos/builtin/packages/openfoam/package.py +++ b/var/spack/repos/builtin/packages/openfoam/package.py @@ -20,9 +20,8 @@ ############################################################################## # # Notes -# - mpi handling: WM_MPLIB=USERMPI and use spack to populate an appropriate -# configuration and generate wmake rules for 'USER' and 'USERMPI' -# mpi implementations. +# - mpi handling: WM_MPLIB=USERMPI and use spack to generate mplibUSERMPI +# wmake rules. # # - Resolution of flex, zlib needs more attention (within OpenFOAM) # - +paraview: @@ -359,7 +358,7 @@ class Openfoam(Package): # Some user config settings # default: 'compile-option': '-spack', - # default: 'mplib': 'USERMPI', # Use user mpi for spack + # default: 'mplib': 'USERMPI', # User-defined mpi for spack config = { # Add links into bin/, lib/ (eg, for other applications) 'link': False @@ -978,7 +977,7 @@ class OpenfoamArch(object): return True 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. The compiler rules are based on the respective {c,c++}Opt rules but with additional rpath information for the OpenFOAM libraries. @@ -1019,12 +1018,13 @@ class OpenfoamArch(object): outfile.write('\n') # MPI rules - for mplib in ['mplibUSER', 'mplibUSERMPI']: + for mplib in ['mplibUSERMPI']: with open(mplib, 'w') as out: - out.write("""# Use mpi from spack ({name})\n + out.write("""# MPI from spack ({name})\n PFLAGS = {FLAGS} PINC = {PINC} PLIBS = {PLIBS} +#------- """.format(**user_mpi)) # ----------------------------------------------------------------------------- |