Commit 676ac4bc authored by Timo Koch's avatar Timo Koch Committed by Kilian Weishaupt
Browse files

[amg] Use unique_ptr internally for parallel helper

parent 942650f5
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment