fix bug in p4est (don't use MPI spec if not compiling with MPI) (#12784)
This commit is contained in:
parent
9962696128
commit
97641aab63
@ -50,17 +50,17 @@ def configure_args(self):
|
|||||||
'--disable-vtk-binary',
|
'--disable-vtk-binary',
|
||||||
'--without-blas',
|
'--without-blas',
|
||||||
'CPPFLAGS=-DSC_LOG_PRIORITY=SC_LP_ESSENTIAL',
|
'CPPFLAGS=-DSC_LOG_PRIORITY=SC_LP_ESSENTIAL',
|
||||||
'CFLAGS=-O2',
|
'CFLAGS=-O2'
|
||||||
'CC=%s' % self.spec['mpi'].mpicc,
|
|
||||||
'CXX=%s' % self.spec['mpi'].mpicxx,
|
|
||||||
'FC=%s' % self.spec['mpi'].mpifc,
|
|
||||||
'F77=%s' % self.spec['mpi'].mpif77
|
|
||||||
]
|
]
|
||||||
|
|
||||||
if '~mpi' in self.spec:
|
if '~mpi' in self.spec:
|
||||||
args.append('--disable-mpi')
|
args.append('--disable-mpi')
|
||||||
else:
|
else:
|
||||||
args.append('--enable-mpi')
|
args.append('--enable-mpi')
|
||||||
|
args.append('CC=%s' % self.spec['mpi'].mpicc)
|
||||||
|
args.append('CXX=%s' % self.spec['mpi'].mpicxx)
|
||||||
|
args.append('FC=%s' % self.spec['mpi'].mpifc)
|
||||||
|
args.append('F77=%s' % self.spec['mpi'].mpif77)
|
||||||
|
|
||||||
if '+openmp' in self.spec:
|
if '+openmp' in self.spec:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user