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

[newton] Deprecate old newton classes

* NewtonMethod
* NewtonController
parent 0b801cfb
No related branches found
No related tags found
1 merge request!762Feature/unify newtoncontrollers
......@@ -35,6 +35,9 @@
#include <dumux/common/exceptions.hh>
#include <dumux/common/timeloop.hh>
#include <dune/common/deprecated.hh>
#warning "This file is deprecated. Use NewtonSolver instead."
namespace Dumux {
......@@ -49,7 +52,7 @@ namespace Dumux {
*/
template <class Scalar,
class Comm = Dune::CollectiveCommunication<Dune::MPIHelper::MPICommunicator> >
class NewtonController
class DUNE_DEPRECATED_MSG("Use NewtonSolver instead.") NewtonController
{
public:
......
......@@ -35,6 +35,9 @@
#include <dumux/common/exceptions.hh>
#include <dumux/common/properties.hh>
#include <dumux/common/parameters.hh>
#include <dune/common/deprecated.hh>
#warning "This file is deprecated. Use NewtonSolver instead."
namespace Dumux {
......@@ -48,7 +51,7 @@ namespace Dumux {
* \tparam LinearSolver the linear solver used to solve one iteration
*/
template <class NewtonController, class JacobianAssembler, class LinearSolver>
class NewtonMethod
class DUNE_DEPRECATED_MSG("Use NewtonSolver instead.") NewtonMethod
{
//! provide an interface as a form of type erasure
//! this is the minimal requirements a convergence write passed to a newton method has to fulfill
......
......@@ -34,6 +34,9 @@
#include <dumux/nonlinear/newtoncontroller.hh>
#include <dumux/linear/linearsolveracceptsmultitypematrix.hh>
#include <dumux/linear/matrixconverter.hh>
#include <dune/common/deprecated.hh>
#warning "This file is deprecated. Use NewtonSolver instead."
namespace Dumux {
......@@ -45,7 +48,8 @@ namespace Dumux {
template <class Scalar,
class Comm = Dune::CollectiveCommunication<Dune::MPIHelper::MPICommunicator> >
class StaggeredNewtonController : public NewtonController<Scalar, Comm>
class DUNE_DEPRECATED_MSG("Use NewtonSolver instead.")
StaggeredNewtonController : public NewtonController<Scalar, Comm>
{
using ParentType = NewtonController<Scalar, Comm>;
......
......@@ -32,6 +32,9 @@
#include <dumux/common/parameters.hh>
#include <dumux/discretization/methods.hh>
#include <dumux/nonlinear/newtoncontroller.hh>
#include <dune/common/deprecated.hh>
#warning "This file is deprecated. Use PriVarSwitchNewtonSolver instead."
namespace Dumux
{
......@@ -44,7 +47,8 @@ namespace Dumux
* \todo Implement for volume variable caching enabled
*/
template <class TypeTag>
class PriVarSwitchNewtonController : public NewtonController<typename GET_PROP_TYPE(TypeTag, Scalar)>
class DUNE_DEPRECATED_MSG("Use PriVarSwitchNewtonSolver instead.")
PriVarSwitchNewtonController : public NewtonController<typename GET_PROP_TYPE(TypeTag, Scalar)>
{
using Scalar = typename GET_PROP_TYPE(TypeTag, Scalar);
using ParentType = NewtonController<Scalar>;
......
......@@ -26,6 +26,9 @@
#include <dumux/common/properties.hh>
#include <dumux/nonlinear/newtoncontroller.hh>
#include <dune/common/deprecated.hh>
#warning "This file is deprecated. Use RichardsNewtonSolver instead."
namespace Dumux {
/*!
......@@ -39,7 +42,8 @@ namespace Dumux {
* or from possible ModelTraits.
*/
template <class TypeTag>
class RichardsNewtonController : public NewtonController<typename GET_PROP_TYPE(TypeTag, Scalar)>
class DUNE_DEPRECATED_MSG("Use RichardsNewtonSolver instead.")
RichardsNewtonController : public NewtonController<typename GET_PROP_TYPE(TypeTag, Scalar)>
{
using Scalar = typename GET_PROP_TYPE(TypeTag, Scalar);
using ParentType = NewtonController<Scalar>;
......
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