petsc: fix flake8 and ~mpi case in tests
This commit is contained in:
parent
37728afada
commit
6f4b0e9bda
@ -150,8 +150,9 @@ def install(self, spec, prefix):
|
||||
|
||||
# solve Poisson equation in 2D to make sure nothing is broken:
|
||||
with working_dir('src/ksp/ksp/examples/tutorials'):
|
||||
cc = os.environ['CC'] if '~mpi' in self.spec else self.spec['mpi'].mpicc # NOQA: ignore=E501
|
||||
os.system('%s ex50.c -I%s -L%s -lpetsc -o ex50' % (
|
||||
self.spec['mpi'].mpicc, prefix.include, prefix.lib))
|
||||
cc, prefix.include, prefix.lib))
|
||||
ex50 = Executable('./ex50')
|
||||
ex50('-da_grid_x', '4', '-da_grid_y', '4')
|
||||
if 'superlu-dist' in spec:
|
||||
|
Loading…
Reference in New Issue
Block a user