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
48bb3924
Commit
48bb3924
authored
6 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
Cached type of ProblemStat::getSolutionVector() from shared_ptr to reference
parent
18c95e67
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
examples/stokes0.cc
+2
-2
2 additions, 2 deletions
examples/stokes0.cc
examples/stokes1.cc
+2
-2
2 additions, 2 deletions
examples/stokes1.cc
examples/vecellipt.cc
+2
-2
2 additions, 2 deletions
examples/vecellipt.cc
src/amdis/ProblemInstat.inc.hpp
+1
-1
1 addition, 1 deletion
src/amdis/ProblemInstat.inc.hpp
with
7 additions
and
7 deletions
examples/stokes0.cc
+
2
−
2
View file @
48bb3924
...
...
@@ -78,8 +78,8 @@ int main(int argc, char** argv)
// write matrix to file
mtl
::
io
::
matrix_market_ostream
out
(
"matrix_stokes0.mtx"
);
out
<<
prob
.
getSystemMatrix
()
->
getMatrix
();
std
::
cout
<<
prob
.
getSystemMatrix
()
->
getMatrix
()
<<
'\n'
;
out
<<
prob
.
getSystemMatrix
()
.
getMatrix
();
std
::
cout
<<
prob
.
getSystemMatrix
()
.
getMatrix
()
<<
'\n'
;
prob
.
solve
(
adaptInfo
);
...
...
This diff is collapsed.
Click to expand it.
examples/stokes1.cc
+
2
−
2
View file @
48bb3924
...
...
@@ -79,8 +79,8 @@ int main(int argc, char** argv)
// write matrix to file
mtl
::
io
::
matrix_market_ostream
out
(
"matrix_stokes1.mtx"
);
out
<<
prob
.
getSystemMatrix
()
->
getMatrix
();
std
::
cout
<<
prob
.
getSystemMatrix
()
->
getMatrix
()
<<
'\n'
;
out
<<
prob
.
getSystemMatrix
()
.
getMatrix
();
std
::
cout
<<
prob
.
getSystemMatrix
()
.
getMatrix
()
<<
'\n'
;
prob
.
solve
(
adaptInfo
);
...
...
This diff is collapsed.
Click to expand it.
examples/vecellipt.cc
+
2
−
2
View file @
48bb3924
...
...
@@ -41,9 +41,9 @@ int main(int argc, char** argv)
// write matrix to file
if
(
Parameters
::
get
<
int
>
(
"elliptMesh->global refinements"
).
value_or
(
0
)
<
4
)
{
mtl
::
io
::
matrix_market_ostream
out
(
"matrix.mtx"
);
out
<<
prob
.
getSystemMatrix
()
->
getMatrix
();
out
<<
prob
.
getSystemMatrix
()
.
getMatrix
();
std
::
cout
<<
prob
.
getSystemMatrix
()
->
getMatrix
()
<<
'\n'
;
std
::
cout
<<
prob
.
getSystemMatrix
()
.
getMatrix
()
<<
'\n'
;
}
prob
.
solve
(
adaptInfo
);
...
...
This diff is collapsed.
Click to expand it.
src/amdis/ProblemInstat.inc.hpp
+
1
−
1
View file @
48bb3924
...
...
@@ -53,7 +53,7 @@ template <class Traits>
void
ProblemInstat
<
Traits
>::
initTimestep
(
AdaptInfo
&
)
{
if
(
oldSolution
)
oldSolution
->
copy
(
*
problemStat
.
getSolutionVector
());
oldSolution
->
copy
(
problemStat
.
getSolutionVector
());
}
}
// end namespace AMDiS
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