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
48bb3924
Commit
48bb3924
authored
Jul 19, 2018
by
Praetorius, Simon
Browse files
Cached type of ProblemStat::getSolutionVector() from shared_ptr to reference
parent
18c95e67
Changes
4
Hide whitespace changes
Inline
Side-by-side
examples/stokes0.cc
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
);
...
...
examples/stokes1.cc
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
);
...
...
examples/vecellipt.cc
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
);
...
...
src/amdis/ProblemInstat.inc.hpp
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
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