Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
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
Container Registry
Model registry
Operate
Environments
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
dumux-repositories
dumux
Commits
d8b42a02
Commit
d8b42a02
authored
4 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[amg] Only construct parallel helper if MPI was found
parent
13af9d39
No related branches found
No related tags found
1 merge request
!1931
[linearsolver] Only construct parallel helper if MPI was found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/linear/amgbackend.hh
+5
-1
5 additions, 1 deletion
dumux/linear/amgbackend.hh
with
5 additions
and
1 deletion
dumux/linear/amgbackend.hh
+
5
−
1
View file @
d8b42a02
...
@@ -82,8 +82,10 @@ public:
...
@@ -82,8 +82,10 @@ public:
const
typename
LinearSolverTraits
::
DofMapper
&
dofMapper
,
const
typename
LinearSolverTraits
::
DofMapper
&
dofMapper
,
const
std
::
string
&
paramGroup
=
""
)
const
std
::
string
&
paramGroup
=
""
)
:
LinearSolver
(
paramGroup
)
:
LinearSolver
(
paramGroup
)
#if HAVE_MPI
,
phelper_
(
std
::
make_shared
<
ParallelISTLHelper
<
LinearSolverTraits
>>
(
gridView
,
dofMapper
))
,
phelper_
(
std
::
make_shared
<
ParallelISTLHelper
<
LinearSolverTraits
>>
(
gridView
,
dofMapper
))
,
isParallel_
(
Dune
::
MPIHelper
::
getCollectiveCommunication
().
size
()
>
1
)
,
isParallel_
(
Dune
::
MPIHelper
::
getCollectiveCommunication
().
size
()
>
1
)
#endif
{
{
reset
();
reset
();
}
}
...
@@ -224,9 +226,11 @@ private:
...
@@ -224,9 +226,11 @@ private:
solver
.
apply
(
x
,
b
,
result_
);
solver
.
apply
(
x
,
b
,
result_
);
}
}
#if HAVE_MPI
std
::
shared_ptr
<
ParallelISTLHelper
<
LinearSolverTraits
>>
phelper_
;
std
::
shared_ptr
<
ParallelISTLHelper
<
LinearSolverTraits
>>
phelper_
;
#endif
Dune
::
InverseOperatorResult
result_
;
Dune
::
InverseOperatorResult
result_
;
bool
isParallel_
;
bool
isParallel_
=
false
;
bool
firstCall_
;
bool
firstCall_
;
};
};
...
...
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