Skip to content
Snippets Groups Projects
Commit 865d0167 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

shared unique_ptr to shared_ptr for old_solution

parent d0f28edc
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ namespace AMDiS ...@@ -54,7 +54,7 @@ namespace AMDiS
ProblemType const& problemStat() const { return *problemStat_; } ProblemType const& problemStat() const { return *problemStat_; }
/// Returns const-ref of \ref oldSolution. /// Returns const-ref of \ref oldSolution.
std::unique_ptr<SystemVector const> oldSolutionVector() const std::shared_ptr<SystemVector const> oldSolutionVector() const
{ {
test_exit_dbg(bool(oldSolution_), test_exit_dbg(bool(oldSolution_),
"OldSolution need to be created. Call initialize with INIT_UH_OLD."); "OldSolution need to be created. Call initialize with INIT_UH_OLD.");
...@@ -81,7 +81,7 @@ namespace AMDiS ...@@ -81,7 +81,7 @@ namespace AMDiS
ProblemType* problemStat_; ProblemType* problemStat_;
/// Solution of the last timestep. /// Solution of the last timestep.
std::unique_ptr<SystemVector> oldSolution_; std::shared_ptr<SystemVector> oldSolution_;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment