diff options
author | Andrew Williams <williamsa89@cardiff.ac.uk> | 2016-08-19 15:00:21 +0100 |
---|---|---|
committer | Andrew Williams <williamsa89@cardiff.ac.uk> | 2016-08-19 15:00:21 +0100 |
commit | 13f636ec6879c992b3a73e0e4f8d6843b1de3397 (patch) | |
tree | 1ae1c4e82c412f34132789e1b9ebe3b09a9d8fa1 | |
parent | 6641f424177ca3565a99c493827582f5511b100a (diff) | |
download | spack-13f636ec6879c992b3a73e0e4f8d6843b1de3397.tar.gz spack-13f636ec6879c992b3a73e0e4f8d6843b1de3397.tar.bz2 spack-13f636ec6879c992b3a73e0e4f8d6843b1de3397.tar.xz spack-13f636ec6879c992b3a73e0e4f8d6843b1de3397.zip |
Added required arguments to get plumed to build with intelmpi
-rw-r--r-- | var/spack/repos/builtin/packages/plumed/package.py | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/plumed/package.py b/var/spack/repos/builtin/packages/plumed/package.py index b1e74c5827..95f32fc42c 100644 --- a/var/spack/repos/builtin/packages/plumed/package.py +++ b/var/spack/repos/builtin/packages/plumed/package.py @@ -60,12 +60,14 @@ class Plumed(Package): # Construct list of optional modules module_opts=[] module_opts.extend([ - '+crystallization' if '+crystallization' in spec else '-crystallization', + '+crystallization' if ( + '+crystallization' in spec) else '-crystallization', '+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. if module_opts: config_args.extend(["--enable-modules=%s" % "".join(module_opts)]) @@ -80,10 +82,13 @@ class Plumed(Package): "F77=%s" % self.spec['mpi'].mpif77 ]) - # Add remaining variant flags. -# config_args.extend([ -# "--enable-mpi" if '+mpi' in spec else "--disable-mpi" -# ]) + # If the MPI dependency is provided by the intelmpi package then + # the following additional argument is required to allow it to + # build. + if spec.satisfies('^intelmpi'): + config_args.extend([ + "STATIC_LIBS=-mt_mpi" + ]) # Configure configure(*config_args) |