Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
27bc49d8
Commit
27bc49d8
authored
8 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Plain Diff
Merge pull request #1001 from ashkan2200/develop
Dealii, fixed issue with tests
parents
b843b73b
6f96484f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/dealii/package.py
+36
-27
36 additions, 27 deletions
var/spack/repos/builtin/packages/dealii/package.py
with
36 additions
and
27 deletions
var/spack/repos/builtin/packages/dealii/package.py
+
36
−
27
View file @
27bc49d8
...
...
@@ -244,38 +244,47 @@ def install(self, spec, prefix):
print
(
'
========= Step-40 Trilinos ==========
'
)
print
(
'
=====================================
'
)
# change Linear Algebra to Trilinos
filter_file
(
r
'
(\/\/ #define FORCE_USE_OF_TRILINOS.*)
'
,
(
'
#define FORCE_USE_OF_TRILINOS
'
),
'
step-40.cc
'
)
# The below filter_file should be different for versions
# before and after 8.4.0
if
spec
.
satisfies
(
'
@8.4.0:
'
):
filter_file
(
r
'
(\/\/ #define FORCE_USE_OF_TRILINOS.*)
'
,
(
'
#define FORCE_USE_OF_TRILINOS
'
),
'
step-40.cc
'
)
else
:
filter_file
(
r
'
(#define USE_PETSC_LA.*)
'
,
(
'
// #define USE_PETSC_LA
'
),
'
step-40.cc
'
)
if
'
^trilinos+hypre
'
in
spec
:
make
(
'
release
'
)
make
(
'
run
'
,
parallel
=
False
)
print
(
'
=====================================
'
)
print
(
'
=== Step-40 Trilinos SuperluDist ====
'
)
print
(
'
=====================================
'
)
# change to direct solvers
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;)
'
,
(
''
),
'
step-40.cc
'
)
filter_file
(
r
'
(LA::MPI::PreconditionAMG::AdditionalData data;)
'
,
(
''
),
'
step-40.cc
'
)
filter_file
(
r
'
(preconditioner.initialize\(system_matrix, data\);)
'
,
(
''
),
'
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
'
(preconditioner\);)
'
,
(
''
),
'
step-40.cc
'
)
if
'
^trilinos+superlu-dist
'
in
spec
:
make
(
'
release
'
)
make
(
'
run
'
,
paralle
=
False
)
# the rest of the tests on step 40 only works for
# dealii version 8.4.0 and after
if
spec
.
satisfies
(
'
@8.4.0:
'
):
print
(
'
=====================================
'
)
print
(
'
=== Step-40 Trilinos SuperluDist ====
'
)
print
(
'
=====================================
'
)
# change to direct solvers
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;)
'
,
(
''
),
'
step-40.cc
'
)
filter_file
(
r
'
(LA::MPI::PreconditionAMG::AdditionalData data;)
'
,
(
''
),
'
step-40.cc
'
)
filter_file
(
r
'
(preconditioner.initialize\(system_matrix, data\);)
'
,
(
''
),
'
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
'
(preconditioner\);)
'
,
(
''
),
'
step-40.cc
'
)
if
'
^trilinos+superlu-dist
'
in
spec
:
make
(
'
release
'
)
make
(
'
run
'
,
paralle
=
False
)
print
(
'
=====================================
'
)
print
(
'
====== Step-40 Trilinos MUMPS =======
'
)
print
(
'
=====================================
'
)
# switch to Mumps
filter_file
(
r
'
(Amesos_Superludist)
'
,
(
'
Amesos_Mumps
'
),
'
step-40.cc
'
)
if
'
^trilinos+mumps
'
in
spec
:
make
(
'
release
'
)
make
(
'
run
'
,
parallel
=
False
)
print
(
'
=====================================
'
)
print
(
'
====== Step-40 Trilinos MUMPS =======
'
)
print
(
'
=====================================
'
)
# switch to Mumps
filter_file
(
r
'
(Amesos_Superludist)
'
,
(
'
Amesos_Mumps
'
),
'
step-40.cc
'
)
if
'
^trilinos+mumps
'
in
spec
:
make
(
'
release
'
)
make
(
'
run
'
,
parallel
=
False
)
print
(
'
=====================================
'
)
print
(
'
============ Step-36 ================
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment