Reference documentation for deal.II version 9.0.0
newton.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2010 - 2017 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE at
12 // the top level of the deal.II distribution.
13 //
14 // ---------------------------------------------------------------------
15 
16 
17 #ifndef dealii_newton_h
18 #define dealii_newton_h
19 
20 #include <deal.II/base/smartpointer.h>
21 #include <deal.II/lac/solver_control.h>
22 #include <deal.II/algorithms/operator.h>
23 #include <deal.II/algorithms/any_data.h>
24 
25 DEAL_II_NAMESPACE_OPEN
26 
27 class ParameterHandler;
28 
29 namespace Algorithms
30 {
66  template <typename VectorType>
67  class Newton : public OperatorBase
68  {
69  public:
75 
79  static void declare_parameters (ParameterHandler &param);
80 
84  void parse_parameters (ParameterHandler &param);
85 
90 
97  virtual void operator() (AnyData &out, const AnyData &in);
98 
99  virtual void notify(const Event &);
100 
105  double threshold(double new_value);
106 
111  private:
116 
121 
127 
133 
142  unsigned int n_stepsize_iterations;
143 
157 
158  public:
168  unsigned int debug;
169  };
170 }
171 
172 DEAL_II_NAMESPACE_CLOSE
173 
174 #endif
bool debug_vectors
Definition: newton.h:163
void initialize(OutputOperator< VectorType > &output)
virtual void operator()(AnyData &out, const AnyData &in)
Newton(OperatorBase &residual, OperatorBase &inverse_derivative)
unsigned int debug
Definition: newton.h:168
static void declare_parameters(ParameterHandler &param)
SmartPointer< OperatorBase, Newton< VectorType > > residual
Definition: newton.h:115
double threshold(double new_value)
void parse_parameters(ParameterHandler &param)
unsigned int n_stepsize_iterations
Definition: newton.h:142
SmartPointer< OutputOperator< VectorType >, Newton< VectorType > > data_out
Definition: newton.h:126
double assemble_threshold
Definition: newton.h:156
SmartPointer< OperatorBase, Newton< VectorType > > inverse_derivative
Definition: newton.h:120
ReductionControl control
Definition: newton.h:110
virtual void notify(const Event &)