Skip to content
Snippets Groups Projects
Commit 038364b7 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Rename: u_old_old -> u_old_old_ptr

parent 09961b45
No related branches found
No related tags found
No related merge requests found
...@@ -257,7 +257,7 @@ int main(int argc, char *argv[]) { ...@@ -257,7 +257,7 @@ int main(int argc, char *argv[]) {
VectorType problem_rhs(finestSize); VectorType problem_rhs(finestSize);
VectorType problem_iterate(finestSize); VectorType problem_iterate(finestSize);
VectorType *u_old_old = (run == 1) ? nullptr : &u_previous; VectorType *u_old_old_ptr = (run == 1) ? nullptr : &u_previous;
typedef TimeSteppingScheme<VectorType, MatrixType, typedef TimeSteppingScheme<VectorType, MatrixType,
decltype(dirichletFunction), dim> TS; decltype(dirichletFunction), dim> TS;
...@@ -269,11 +269,11 @@ int main(int argc, char *argv[]) { ...@@ -269,11 +269,11 @@ int main(int argc, char *argv[]) {
Dune::shared_ptr<TS> timeSteppingScheme; Dune::shared_ptr<TS> timeSteppingScheme;
if (run == 1 || !parset.get<bool>("implicitTwoStep")) if (run == 1 || !parset.get<bool>("implicitTwoStep"))
timeSteppingScheme = timeSteppingScheme =
Dune::make_shared<IE>(ell, stiffnessMatrix, u, u_old_old, Dune::make_shared<IE>(ell, stiffnessMatrix, u, u_old_old_ptr,
ignoreNodes, dirichletFunction, time, tau); ignoreNodes, dirichletFunction, time, tau);
else else
timeSteppingScheme = timeSteppingScheme =
Dune::make_shared<ITS>(ell, stiffnessMatrix, u, u_old_old, Dune::make_shared<ITS>(ell, stiffnessMatrix, u, u_old_old_ptr,
ignoreNodes, dirichletFunction, time, tau); ignoreNodes, dirichletFunction, time, tau);
timeSteppingScheme->setup(problem_rhs, problem_iterate, problem_A); timeSteppingScheme->setup(problem_rhs, problem_iterate, problem_A);
......
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