Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
amdis
amdis-core
Commits
865d0167
Commit
865d0167
authored
6 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
shared unique_ptr to shared_ptr for old_solution
parent
d0f28edc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/amdis/ProblemInstat.hpp
+2
-2
2 additions, 2 deletions
src/amdis/ProblemInstat.hpp
with
2 additions
and
2 deletions
src/amdis/ProblemInstat.hpp
+
2
−
2
View file @
865d0167
...
@@ -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_
;
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment