Skip to content
Snippets Groups Projects
Commit 394f0109 authored by Andrey Prokopenko's avatar Andrey Prokopenko Committed by becker33
Browse files

libmesh: added mpi variant (#2584)

parent 5f88bea4
No related branches found
No related tags found
No related merge requests found
...@@ -35,8 +35,22 @@ class Libmesh(Package): ...@@ -35,8 +35,22 @@ class Libmesh(Package):
version('1.0.0', 'cb464fc63ea0b71b1e69fa3f5d4f93a4') version('1.0.0', 'cb464fc63ea0b71b1e69fa3f5d4f93a4')
variant('mpi', default=True, description='Enables MPI parallelism')
depends_on('mpi', when='+mpi')
# Parallel version of libmesh needs parallel solvers
depends_on('petsc+mpi', when='+mpi')
def install(self, spec, prefix): def install(self, spec, prefix):
configure('--prefix={0}'.format(prefix)) config_args = ["--prefix=%s" % prefix]
if '+mpi' in spec:
config_args.append('CC=%s' % spec['mpi'].mpicc)
config_args.append('CXX=%s' % spec['mpi'].mpicxx)
config_args.append('PETSC_DIR=%s' % spec['petsc'].prefix)
configure(*config_args)
make() make()
make('install') make('install')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment