Skip to content
Snippets Groups Projects
Commit 48bb3924 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Cached type of ProblemStat::getSolutionVector() from shared_ptr to reference

parent 18c95e67
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment