Reference documentation for deal.II version GIT d6cf33b98c 2023-09-22 19:50:02+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
newton.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2010 - 2020 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.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 
17 #ifndef dealii_newton_h
18 #define dealii_newton_h
19 
20 #include <deal.II/base/config.h>
21 
24 
26 
28 
30 
31 // Forward declaration
32 #ifndef DOXYGEN
33 class ParameterHandler;
34 #endif
35 
36 namespace Algorithms
37 {
71  template <typename VectorType>
72  class Newton : public OperatorBase
73  {
74  public:
80 
84  static void
86 
90  void
92 
96  void
98 
105  virtual void
106  operator()(AnyData &out, const AnyData &in) override;
107 
108  virtual void
109  notify(const Event &) override;
110 
115  double
116  threshold(double new_value);
117 
122 
123  private:
128 
133 
139 
145 
154  unsigned int n_stepsize_iterations;
155 
169 
170  public:
180  unsigned int debug;
181  };
182 } // namespace Algorithms
183 
185 
186 #endif
virtual void notify(const Event &) override
double assemble_threshold
Definition: newton.h:168
unsigned int debug
Definition: newton.h:180
SmartPointer< OperatorBase, Newton< VectorType > > residual
Definition: newton.h:127
bool debug_vectors
Definition: newton.h:175
SmartPointer< OutputOperator< VectorType >, Newton< VectorType > > data_out
Definition: newton.h:138
void initialize(OutputOperator< VectorType > &output)
ReductionControl control
Definition: newton.h:121
Newton(OperatorBase &residual, OperatorBase &inverse_derivative)
SmartPointer< OperatorBase, Newton< VectorType > > inverse_derivative
Definition: newton.h:132
virtual void operator()(AnyData &out, const AnyData &in) override
static void declare_parameters(ParameterHandler &param)
void parse_parameters(ParameterHandler &param)
double threshold(double new_value)
unsigned int n_stepsize_iterations
Definition: newton.h:154
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:477
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:478