From 669ce443aa50e4e7a470462275c9863dbc6c90f1 Mon Sep 17 00:00:00 2001
From: Christoph Lehmann <christoph.lehmann@ufz.de>
Date: Tue, 11 Sep 2018 14:08:33 +0200
Subject: [PATCH] [PL] Known solutions handled by nonlinear solver

---
 ProcessLib/UncoupledProcessesTimeLoop.cpp | 33 -----------------------
 1 file changed, 33 deletions(-)

diff --git a/ProcessLib/UncoupledProcessesTimeLoop.cpp b/ProcessLib/UncoupledProcessesTimeLoop.cpp
index 9ece9ab2b24..19450c9ea72 100644
--- a/ProcessLib/UncoupledProcessesTimeLoop.cpp
+++ b/ProcessLib/UncoupledProcessesTimeLoop.cpp
@@ -58,37 +58,6 @@ static void setEquationSystem(NumLib::NonlinearSolverBase& nonlinear_solver,
     }
 }
 
-//! Applies known solutions to the solution vector \c x, transparently
-//! for equation systems linearized with either the Picard or Newton method.
-template <NumLib::NonlinearSolverTag NLTag>
-static void applyKnownSolutions(NumLib::EquationSystem const& eq_sys,
-                                GlobalVector& x)
-{
-    using EqSys = NumLib::NonlinearSystem<NLTag>;
-    assert(dynamic_cast<EqSys const*>(&eq_sys) != nullptr);
-    auto& eq_sys_ = static_cast<EqSys const&>(eq_sys);
-
-    eq_sys_.applyKnownSolutions(x);
-}
-
-//! Applies known solutions to the solution vector \c x, transparently
-//! for equation systems linearized with either the Picard or Newton method.
-static void applyKnownSolutions(NumLib::EquationSystem const& eq_sys,
-                                NumLib::NonlinearSolverTag const nl_tag,
-                                GlobalVector& x)
-{
-    using Tag = NumLib::NonlinearSolverTag;
-    switch (nl_tag)
-    {
-        case Tag::Picard:
-            applyKnownSolutions<Tag::Picard>(eq_sys, x);
-            break;
-        case Tag::Newton:
-            applyKnownSolutions<Tag::Newton>(eq_sys, x);
-            break;
-    }
-}
-
 namespace ProcessLib
 {
 template <NumLib::ODESystemTag ODETag>
@@ -286,8 +255,6 @@ bool solveOneTimeStepOneProcess(int const process_id, GlobalVector& x,
 
     time_disc.nextTimestep(t, delta_t);
 
-    applyKnownSolutions(ode_sys, nl_tag, x);
-
     auto const post_iteration_callback = [&](unsigned iteration,
                                              GlobalVector const& x) {
         output_control.doOutputNonlinearIteration(process, process_id,
-- 
GitLab