Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
676ac4bc
Commit
676ac4bc
authored
Mar 31, 2020
by
Timo Koch
Committed by
Kilian Weishaupt
Mar 31, 2020
Browse files
[amg] Use unique_ptr internally for parallel helper
parent
942650f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/linear/amgbackend.hh
View file @
676ac4bc
...
...
@@ -83,7 +83,7 @@ public:
const
std
::
string
&
paramGroup
=
""
)
:
LinearSolver
(
paramGroup
)
#if HAVE_MPI
,
phelper_
(
std
::
make_
shared
<
ParallelISTLHelper
<
LinearSolverTraits
>>
(
gridView
,
dofMapper
))
,
phelper_
(
std
::
make_
unique
<
ParallelISTLHelper
<
LinearSolverTraits
>>
(
gridView
,
dofMapper
))
,
isParallel_
(
Dune
::
MPIHelper
::
getCollectiveCommunication
().
size
()
>
1
)
#endif
{
...
...
@@ -227,7 +227,7 @@ private:
}
#if HAVE_MPI
std
::
shared
_ptr
<
ParallelISTLHelper
<
LinearSolverTraits
>>
phelper_
;
std
::
unique
_ptr
<
ParallelISTLHelper
<
LinearSolverTraits
>>
phelper_
;
#endif
Dune
::
InverseOperatorResult
result_
;
bool
isParallel_
=
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment