Skip to content
Snippets Groups Projects
Commit 58c36093 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

Merge branch 'cleanup/remove-obsolete-setprevioussolution' into 'master'

[cleanup] Remove obsolete setPreviousSolution

See merge request !2021
parents 92854e8f 00772cf9
No related branches found
No related tags found
1 merge request!2021[cleanup] Remove obsolete setPreviousSolution
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -113,7 +113,6 @@ int main(int argc, char** argv) try
//! the assembler with time loop for instationary problem
using Assembler = FVAssembler<TypeTag, DiffMethod::numeric, /*implicit=*/false>;
auto assembler = std::make_shared<Assembler>(problem, gridGeometry, gridVariables, timeLoop, xOld);
assembler->setPreviousSolution(xOld);
//! the linear solver
using LinearSolver = ExplicitDiagonalSolver;
......
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