27#ifndef DUMUX_NONEQUILIBRIUM_NEWTON_SOLVER_HH
28#define DUMUX_NONEQUILIBRIUM_NEWTON_SOLVER_HH
39template <
class Assembler,
class LinearSolver>
43 using SolutionVector =
typename Assembler::ResidualType;
46 using ParentType::ParentType;
49 const SolutionVector &uLastIter)
final
53 auto& gridVariables = this->
assembler().gridVariables();
56 gridVariables.calcVelocityAverage(uCurrentIter);
const Assembler & assembler() const
Access the assembler.
Definition common/pdesolver.hh:92
virtual void newtonEndStep(SolutionVector &uCurrentIter, const SolutionVector &uLastIter)
Indicates that one Newton iteration was finished.
Definition nonlinear/newtonsolver.hh:493
NewtonSolver(std::shared_ptr< Assembler > assembler, std::shared_ptr< LinearSolver > linearSolver, const Communication &comm=Dune::MPIHelper::getCollectiveCommunication(), const std::string ¶mGroup="")
The Constructor.
Definition nonlinear/newtonsolver.hh:116
A nonequilibrium specific newton solver.
Definition porousmediumflow/nonequilibrium/newtonsolver.hh:41
void newtonEndStep(SolutionVector &uCurrentIter, const SolutionVector &uLastIter) final
Indicates that one Newton iteration was finished.
Definition porousmediumflow/nonequilibrium/newtonsolver.hh:48
Reference implementation of the Newton solver.