flake8 fixes for dealii
This commit is contained in:
parent
e76083205f
commit
5fe531050c
1 changed files with 16 additions and 17 deletions
|
@ -80,7 +80,7 @@ class Dealii(Package):
|
||||||
depends_on("netcdf-cxx", when='+netcdf+mpi')
|
depends_on("netcdf-cxx", when='+netcdf+mpi')
|
||||||
depends_on("oce", when='+oce')
|
depends_on("oce", when='+oce')
|
||||||
depends_on("p4est", when='+p4est+mpi')
|
depends_on("p4est", when='+p4est+mpi')
|
||||||
depends_on("petsc@:3.6.4+mpi", when='+petsc+mpi') # FIXME: update after 3.7 is supported upstream
|
depends_on("petsc@:3.6.4+mpi", when='+petsc+mpi') # FIXME: update after 3.7 is supported upstream. # NOQA: ignore=E501
|
||||||
depends_on("slepc@:3.6.3", when='+slepc+petsc+mpi')
|
depends_on("slepc@:3.6.3", when='+slepc+petsc+mpi')
|
||||||
depends_on("trilinos", when='+trilinos+mpi')
|
depends_on("trilinos", when='+trilinos+mpi')
|
||||||
|
|
||||||
|
@ -108,12 +108,11 @@ def install(self, spec, prefix):
|
||||||
# of Spack's. Be more specific to avoid this.
|
# of Spack's. Be more specific to avoid this.
|
||||||
# Note that both lapack and blas are provided in -DLAPACK_XYZ.
|
# Note that both lapack and blas are provided in -DLAPACK_XYZ.
|
||||||
'-DLAPACK_FOUND=true',
|
'-DLAPACK_FOUND=true',
|
||||||
'-DLAPACK_INCLUDE_DIRS=%s;%s' %
|
'-DLAPACK_INCLUDE_DIRS=%s;%s' % (
|
||||||
(spec['lapack'].prefix.include,
|
spec['lapack'].prefix.include, spec['blas'].prefix.include),
|
||||||
spec['blas'].prefix.include),
|
'-DLAPACK_LIBRARIES=%s;%s' % (
|
||||||
'-DLAPACK_LIBRARIES=%s;%s' %
|
spec['lapack'].lapack_shared_lib,
|
||||||
(spec['lapack'].lapack_shared_lib,
|
spec['blas'].blas_shared_lib),
|
||||||
spec['blas'].blas_shared_lib),
|
|
||||||
'-DMUPARSER_DIR=%s' % spec['muparser'].prefix,
|
'-DMUPARSER_DIR=%s' % spec['muparser'].prefix,
|
||||||
'-DUMFPACK_DIR=%s' % spec['suite-sparse'].prefix,
|
'-DUMFPACK_DIR=%s' % spec['suite-sparse'].prefix,
|
||||||
'-DTBB_DIR=%s' % spec['tbb'].prefix,
|
'-DTBB_DIR=%s' % spec['tbb'].prefix,
|
||||||
|
@ -168,14 +167,14 @@ def install(self, spec, prefix):
|
||||||
if '+netcdf' in spec:
|
if '+netcdf' in spec:
|
||||||
options.extend([
|
options.extend([
|
||||||
'-DNETCDF_FOUND=true',
|
'-DNETCDF_FOUND=true',
|
||||||
'-DNETCDF_LIBRARIES=%s;%s' %
|
'-DNETCDF_LIBRARIES=%s;%s' % (
|
||||||
(join_path(spec['netcdf-cxx'].prefix.lib,
|
join_path(spec['netcdf-cxx'].prefix.lib,
|
||||||
'libnetcdf_c++.%s' % dsuf),
|
'libnetcdf_c++.%s' % dsuf),
|
||||||
join_path(spec['netcdf'].prefix.lib,
|
join_path(spec['netcdf'].prefix.lib,
|
||||||
'libnetcdf.%s' % dsuf)),
|
'libnetcdf.%s' % dsuf)),
|
||||||
'-DNETCDF_INCLUDE_DIRS=%s;%s' %
|
'-DNETCDF_INCLUDE_DIRS=%s;%s' % (
|
||||||
(spec['netcdf-cxx'].prefix.include,
|
spec['netcdf-cxx'].prefix.include,
|
||||||
spec['netcdf'].prefix.include),
|
spec['netcdf'].prefix.include),
|
||||||
])
|
])
|
||||||
else:
|
else:
|
||||||
options.extend([
|
options.extend([
|
||||||
|
@ -266,9 +265,9 @@ def install(self, spec, prefix):
|
||||||
filter_file(r'(LA::SolverCG solver\(solver_control\);)', ('TrilinosWrappers::SolverDirect::AdditionalData data(false,"Amesos_Superludist"); TrilinosWrappers::SolverDirect solver(solver_control,data);'), 'step-40.cc') # NOQA: ignore=E501
|
filter_file(r'(LA::SolverCG solver\(solver_control\);)', ('TrilinosWrappers::SolverDirect::AdditionalData data(false,"Amesos_Superludist"); TrilinosWrappers::SolverDirect solver(solver_control,data);'), 'step-40.cc') # NOQA: ignore=E501
|
||||||
filter_file(r'(LA::MPI::PreconditionAMG preconditioner;)',
|
filter_file(r'(LA::MPI::PreconditionAMG preconditioner;)',
|
||||||
(''), 'step-40.cc')
|
(''), 'step-40.cc')
|
||||||
filter_file(r'(LA::MPI::PreconditionAMG::AdditionalData data;)',
|
filter_file(r'(LA::MPI::PreconditionAMG::AdditionalData data;)', # NOQA: ignore=E501
|
||||||
(''), 'step-40.cc')
|
(''), 'step-40.cc')
|
||||||
filter_file(r'(preconditioner.initialize\(system_matrix, data\);)',
|
filter_file(r'(preconditioner.initialize\(system_matrix, data\);)', # NOQA: ignore=E501
|
||||||
(''), 'step-40.cc')
|
(''), 'step-40.cc')
|
||||||
filter_file(r'(solver\.solve \(system_matrix, completely_distributed_solution, system_rhs,)', ('solver.solve (system_matrix, completely_distributed_solution, system_rhs);'), 'step-40.cc') # NOQA: ignore=E501
|
filter_file(r'(solver\.solve \(system_matrix, completely_distributed_solution, system_rhs,)', ('solver.solve (system_matrix, completely_distributed_solution, system_rhs);'), 'step-40.cc') # NOQA: ignore=E501
|
||||||
filter_file(r'(preconditioner\);)', (''), 'step-40.cc')
|
filter_file(r'(preconditioner\);)', (''), 'step-40.cc')
|
||||||
|
|
Loading…
Reference in a new issue