From 00772cf9c3422cc206519669bb812afbcb2ec7d6 Mon Sep 17 00:00:00 2001 From: Timo Koch Date: Wed, 22 Apr 2020 12:08:41 +0200 Subject: [PATCH] [cleanup] Remove obsolete setPreviousSolution. The solution is already passed in the assembler constructor now. --- examples/shallowwaterfriction/doc/main.md | 3 --- examples/shallowwaterfriction/main.cc | 3 --- test/porousmediumflow/2pncmin/implicit/nonisothermal/main.cc | 3 --- test/porousmediumflow/tracer/multiphase/main.cc | 1 - 4 files changed, 10 deletions(-) diff --git a/examples/shallowwaterfriction/doc/main.md b/examples/shallowwaterfriction/doc/main.md index 2861a9537a..ebf2c5f6c9 100644 --- a/examples/shallowwaterfriction/doc/main.md +++ b/examples/shallowwaterfriction/doc/main.md @@ -216,9 +216,6 @@ and the time step sizes used is printed to the terminal. ```cpp timeLoop->start(); do { - // First we define the old solution as the solution of the previous time step for storage evaluations. - assembler->setPreviousSolution(xOld); - // We solve the non-linear system with time step control, using Newthon's method. nonLinearSolver.solve(x,*timeLoop); diff --git a/examples/shallowwaterfriction/main.cc b/examples/shallowwaterfriction/main.cc index db7f3f14e4..f231708a7a 100644 --- a/examples/shallowwaterfriction/main.cc +++ b/examples/shallowwaterfriction/main.cc @@ -172,9 +172,6 @@ int main(int argc, char** argv) try // [[codeblock]] timeLoop->start(); do { - // First we define the old solution as the solution of the previous time step for storage evaluations. - assembler->setPreviousSolution(xOld); - // We solve the non-linear system with time step control, using Newthon's method. nonLinearSolver.solve(x,*timeLoop); diff --git a/test/porousmediumflow/2pncmin/implicit/nonisothermal/main.cc b/test/porousmediumflow/2pncmin/implicit/nonisothermal/main.cc index 901a83e646..dec6cfdec1 100644 --- a/test/porousmediumflow/2pncmin/implicit/nonisothermal/main.cc +++ b/test/porousmediumflow/2pncmin/implicit/nonisothermal/main.cc @@ -180,9 +180,6 @@ int main(int argc, char** argv) try problem->setTime( timeLoop->time() + timeLoop->timeStepSize() ); problem->setTimeStepSize( timeLoop->timeStepSize() ); - // set previous solution for storage evaluations - assembler->setPreviousSolution(xOld); - // solve the non-linear system with time step control nonLinearSolver.solve(x, *timeLoop); diff --git a/test/porousmediumflow/tracer/multiphase/main.cc b/test/porousmediumflow/tracer/multiphase/main.cc index bcc4a5d684..a797ee6f6a 100644 --- a/test/porousmediumflow/tracer/multiphase/main.cc +++ b/test/porousmediumflow/tracer/multiphase/main.cc @@ -113,7 +113,6 @@ int main(int argc, char** argv) try //! the assembler with time loop for instationary problem using Assembler = FVAssembler; auto assembler = std::make_shared(problem, gridGeometry, gridVariables, timeLoop, xOld); - assembler->setPreviousSolution(xOld); //! the linear solver using LinearSolver = ExplicitDiagonalSolver; -- GitLab