commit
3f32dd767e
@ -61,14 +61,24 @@ def mpi_dependent_options(self):
|
||||
errors = ['incompatible variants given'] + errors
|
||||
raise RuntimeError('\n'.join(errors))
|
||||
else:
|
||||
compiler_opts = [
|
||||
'--with-mpi=1',
|
||||
'--with-mpi-dir=%s' % self.spec['mpi'].prefix,
|
||||
]
|
||||
if self.compiler.name == "clang":
|
||||
compiler_opts = [
|
||||
'--with-mpi=1',
|
||||
'--with-cc=%s -Qunused-arguments' % join_path(self.spec['mpi'].prefix.bin, 'mpicc'), # Avoid confusing PETSc config by clang: warning: argument unused during compilation
|
||||
'--with-cxx=%s -Qunused-arguments' % join_path(self.spec['mpi'].prefix.bin, 'mpic++'),
|
||||
'--with-fc=%s' % join_path(self.spec['mpi'].prefix.bin, 'mpif90'),
|
||||
'--with-f77=%s' % join_path(self.spec['mpi'].prefix.bin, 'mpif77'),
|
||||
]
|
||||
else:
|
||||
compiler_opts = [
|
||||
'--with-mpi=1',
|
||||
'--with-mpi-dir=%s' % self.spec['mpi'].prefix,
|
||||
]
|
||||
return compiler_opts
|
||||
|
||||
def install(self, spec, prefix):
|
||||
options = []
|
||||
options = ['--with-debugging=0',
|
||||
'--with-ssl=0']
|
||||
options.extend(self.mpi_dependent_options())
|
||||
options.extend([
|
||||
'--with-precision=%s' % ('double' if '+double' in spec else 'single'),
|
||||
|
Loading…
Reference in New Issue
Block a user