Skip to content
Snippets Groups Projects
Commit 13f636ec authored by Andrew Williams's avatar Andrew Williams
Browse files

Added required arguments to get plumed to build with intelmpi

parent 6641f424
Branches
Tags
No related merge requests found
...@@ -60,12 +60,14 @@ def install(self, spec, prefix): ...@@ -60,12 +60,14 @@ def install(self, spec, prefix):
# Construct list of optional modules # Construct list of optional modules
module_opts=[] module_opts=[]
module_opts.extend([ module_opts.extend([
'+crystallization' if '+crystallization' in spec else '-crystallization', '+crystallization' if (
'+crystallization' in spec) else '-crystallization',
'+imd' if '+imd' in spec else '-imd', '+imd' if '+imd' in spec else '-imd',
'+manyrestraints' if '+manyrestraints' in spec else '-manyrestraints' '+manyrestraints' if (
'+manyrestraints' in spec) else '-manyrestraints'
]) ])
# If we have specified any optional modules then add the argument ro # If we have specified any optional modules then add the argument to
# enable or disable them. # enable or disable them.
if module_opts: if module_opts:
config_args.extend(["--enable-modules=%s" % "".join(module_opts)]) config_args.extend(["--enable-modules=%s" % "".join(module_opts)])
...@@ -80,10 +82,13 @@ def install(self, spec, prefix): ...@@ -80,10 +82,13 @@ def install(self, spec, prefix):
"F77=%s" % self.spec['mpi'].mpif77 "F77=%s" % self.spec['mpi'].mpif77
]) ])
# Add remaining variant flags. # If the MPI dependency is provided by the intelmpi package then
# config_args.extend([ # the following additional argument is required to allow it to
# "--enable-mpi" if '+mpi' in spec else "--disable-mpi" # build.
# ]) if spec.satisfies('^intelmpi'):
config_args.extend([
"STATIC_LIBS=-mt_mpi"
])
# Configure # Configure
configure(*config_args) configure(*config_args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment