summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-03-28 13:16:08 +0200
committerDenis Davydov <davydden@gmail.com>2016-03-28 13:16:08 +0200
commit0da545ecac1c57a04abf814c9fed4f9929726ff5 (patch)
tree18fe5770bf08b5aac3439b2c427d87504c1ea867 /var
parent69ebc8173e1843ea570d78ac27465b0ea32c753d (diff)
downloadspack-0da545ecac1c57a04abf814c9fed4f9929726ff5.tar.gz
spack-0da545ecac1c57a04abf814c9fed4f9929726ff5.tar.bz2
spack-0da545ecac1c57a04abf814c9fed4f9929726ff5.tar.xz
spack-0da545ecac1c57a04abf814c9fed4f9929726ff5.zip
tell amesos that we use mumps 5
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/trilinos/package.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py
index 6608f64ea7..90b7bff149 100644
--- a/var/spack/repos/builtin/packages/trilinos/package.py
+++ b/var/spack/repos/builtin/packages/trilinos/package.py
@@ -6,6 +6,9 @@ import os, sys, glob
# https://github.com/koecher/candi/blob/master/deal.II-toolchain/packages/trilinos.package
# https://gitlab.com/configurations/cluster-config/blob/master/trilinos.sh
# https://github.com/Homebrew/homebrew-science/blob/master/trilinos.rb
+# and some relevant documentation/examples:
+# https://trilinos.org/docs/dev/packages/amesos2/doc/html/classAmesos2_1_1MUMPS.html
+# https://github.com/trilinos/Trilinos/issues/175
class Trilinos(Package):
"""The Trilinos Project is an effort to develop algorithms and enabling technologies within an object-oriented
software framework for the solution of large-scale, complex multi-physics engineering and scientific problems.
@@ -46,7 +49,7 @@ class Trilinos(Package):
depends_on('mpi')
depends_on('netcdf+mpi')
depends_on('parmetis',when='+metis')
- depends_on('mumps+mpi+shared',when='+mumps') # Amesos link errors with static: "__gfortran_adjustl", referenced from: _dmumps_ in libdmumps.a(dmumps_driver.o) "_mpi_abort_", referenced from: _mumps_abort_ in libmumps_common.a(tools_common.o)
+ depends_on('mumps@5.0:+mpi+shared',when='+mumps') # Amesos link errors with static: "__gfortran_adjustl", referenced from: _dmumps_ in libdmumps.a(dmumps_driver.o) "_mpi_abort_", referenced from: _mumps_abort_ in libmumps_common.a(tools_common.o)
depends_on('scalapack',when='+mumps')
depends_on('superlu-dist',when='+superlu-dist')
depends_on('hypre',when='+hypre')
@@ -67,6 +70,7 @@ class Trilinos(Package):
def install(self, spec, prefix):
self.variants_check()
+ cxx_flags = []
options = []
options.extend(std_cmake_args)
@@ -91,7 +95,6 @@ class Trilinos(Package):
'-DBoost_LIBRARY_DIRS:PATH=%s' % spec['boost'].prefix.lib,
'-DTrilinos_ENABLE_EXPLICIT_INSTANTIATION:BOOL=ON',
'-DTrilinos_ENABLE_CXX11:BOOL=ON',
- '-DTrilinos_CXX11_FLAGS=-std=c++11',
'-DTPL_ENABLE_Netcdf:BOOL=ON',
'-DTPL_ENABLE_HYPRE:BOOL=ON',
'-DTPL_ENABLE_HDF5:BOOL=ON'
@@ -154,6 +157,10 @@ class Trilinos(Package):
'-DTPL_ENABLE_SCALAPACK:BOOL=ON',
'-DSCALAPACK_LIBRARY_NAMES=scalapack' # FIXME: for MKL it's mkl_scalapack_lp64;mkl_blacs_mpich_lp64
])
+ # see https://github.com/trilinos/Trilinos/blob/master/packages/amesos/README-MUMPS
+ cxx_flags.extend([
+ '-DMUMPS_5_0'
+ ])
else:
options.extend([
'-DTPL_ENABLE_MUMPS:BOOL=OFF',
@@ -194,6 +201,10 @@ class Trilinos(Package):
'-DTrilinos_ENABLE_PyTrilinos:BOOL=OFF'
])
+ # collect CXX flags:
+ options.extend([
+ '-DCMAKE_CXX_FLAGS:STRING=%s' % (' '.join(cxx_flags)),
+ ])
# disable due to compiler / config errors:
options.extend([