diff --git a/src/amdis/ProblemInstat.hpp b/src/amdis/ProblemInstat.hpp index 92891279872ea3fc351855a75a008cfdaaefa32b..a45f0c0d78c03ef458b92a588fe39290deaabcdf 100644 --- a/src/amdis/ProblemInstat.hpp +++ b/src/amdis/ProblemInstat.hpp @@ -54,7 +54,7 @@ namespace AMDiS ProblemType const& problemStat() const { return *problemStat_; } /// Returns const-ref of \ref oldSolution. - std::unique_ptr oldSolutionVector() const + std::shared_ptr oldSolutionVector() const { test_exit_dbg(bool(oldSolution_), "OldSolution need to be created. Call initialize with INIT_UH_OLD."); @@ -81,7 +81,7 @@ namespace AMDiS ProblemType* problemStat_; /// Solution of the last timestep. - std::unique_ptr oldSolution_; + std::shared_ptr oldSolution_; };