Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-istl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Core Modules
dune-istl
Commits
4d978174
Commit
4d978174
authored
9 months ago
by
Christoph Grüninger
Browse files
Options
Downloads
Plain Diff
Merge branch 'bugfix/make-solverfactory-work-without-optional-pkgs' into 'master'
[bugfix] Make solverfactory tests work without optional pkgs Closes
#117
See merge request
!570
parents
f4cfadbb
9e749fb5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!570
[bugfix] Make solverfactory tests work without optional pkgs
Pipeline
#71545
passed
9 months ago
Stage: .pre
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/istl/test/solverfactorytest.cc.in
+21
-0
21 additions, 0 deletions
dune/istl/test/solverfactorytest.cc.in
with
21 additions
and
0 deletions
dune/istl/test/solverfactorytest.cc.in
+
21
−
0
View file @
4d978174
...
...
@@ -52,6 +52,24 @@ using Matrix = Dune::BCRSMatrix<typename MatrixBlock<@BLOCK@>::type>;
template<class Comm>
void testSeq(const Dune::ParameterTree& config, Comm c){
if(c.rank() == 0){
std::set<std::string> deactivate_solvers;
#if !HAVE_SUITESPARSE_CHOLMOD
deactivate_solvers.insert("Cholmod");
#endif
#if !HAVE_SUITESPARSE_LDL
deactivate_solvers.insert("LDL");
#endif
#if !HAVE_SUITESPARSE_UMFPACK
deactivate_solvers.insert("UMFPack");
#endif
#if !HAVE_SUITESPARSE_SPQR
deactivate_solvers.insert("SPQR");
#endif
#if !HAVE_SUPERLU
deactivate_solvers.insert("SuperLU");
#endif
Matrix mat;
int N = config.get("N", 10);
setupLaplacian(mat, N);
...
...
@@ -61,6 +79,9 @@ void testSeq(const Dune::ParameterTree& config, Comm c){
std::shared_ptr<Operator> op = std::make_shared<Operator>(mat);
for(const std::string& test : config.getSubKeys()){
if(deactivate_solvers.find(test) != deactivate_solvers.end())
continue;
Dune::ParameterTree solverConfig = config.sub(test);
std::cout << " ============== " << test << " ============== " << std::endl;
try{
...
...
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