Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
865d0167
Commit
865d0167
authored
Mar 12, 2019
by
Praetorius, Simon
Browse files
shared unique_ptr to shared_ptr for old_solution
parent
d0f28edc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/amdis/ProblemInstat.hpp
View file @
865d0167
...
...
@@ -54,7 +54,7 @@ namespace AMDiS
ProblemType
const
&
problemStat
()
const
{
return
*
problemStat_
;
}
/// 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_
),
"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
<
SystemVector
>
oldSolution_
;
std
::
shared
_ptr
<
SystemVector
>
oldSolution_
;
};
...
...
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