Commit 865d0167 authored by Praetorius, Simon's avatar Praetorius, Simon

shared unique_ptr to shared_ptr for old_solution

parent d0f28edc
Pipeline #1807 passed with stage
in 42 minutes and 24 seconds
...@@ -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_;
}; };
......
Markdown is supported
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