Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
newton.h
1 // ---------------------------------------------------------------------
2 // @f$Id: newton.h 30036 2013-07-18 16:55:32Z maier @f$
3 //
4 // Copyright (C) 2010 - 2013 by the deal.II authors
5 //
6 // This file is part of the deal.II library.
7 //
8 // The deal.II library is free software; you can use it, redistribute
9 // it, and/or modify it under the terms of the GNU Lesser General
10 // Public License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
12 // The full text of the license can be found in the file LICENSE at
13 // the top level of the deal.II distribution.
14 //
15 // ---------------------------------------------------------------------
16 
17 
18 #ifndef __deal2__newton_h
19 #define __deal2__newton_h
20 
21 #include <deal.II/base/smartpointer.h>
22 #include <deal.II/lac/solver_control.h>
23 #include <deal.II/algorithms/operator.h>
24 
26 
27 class ParameterHandler;
28 
29 namespace Algorithms
30 {
68  template <class VECTOR>
69  class Newton : public Operator<VECTOR>
70  {
71  public:
79 
85 
89  void initialize (ParameterHandler &param);
90 
95  void initialize (OutputOperator<VECTOR> &output);
96 
108  virtual void operator() (NamedData<VECTOR *> &out, const NamedData<VECTOR *> &in);
109 
110  virtual void notify(const Event &);
111 
119  double threshold(double new_value);
120 
126  private:
131 
137 
144 
153 
167  unsigned int n_stepsize_iterations;
168 
187 
188  public:
201  unsigned int debug;
202  };
203 }
204 
205 DEAL_II_NAMESPACE_CLOSE
206 
207 #endif
ReductionControl control
Definition: newton.h:125
bool debug_vectors
Definition: newton.h:195
void initialize(ParameterHandler &param)
unsigned int n_stepsize_iterations
Definition: newton.h:167
virtual void operator()(NamedData< VECTOR * > &out, const NamedData< VECTOR * > &in)
SmartPointer< OutputOperator< VECTOR >, Newton< VECTOR > > data_out
Definition: newton.h:143
double threshold(double new_value)
Newton(Operator< VECTOR > &residual, Operator< VECTOR > &inverse_derivative)
unsigned int debug
Definition: newton.h:201
void declare_parameters(ParameterHandler &param)
SmartPointer< Operator< VECTOR >, Newton< VECTOR > > residual
Definition: newton.h:130
virtual void notify(const Event &)
double assemble_threshold
Definition: newton.h:186
SmartPointer< Operator< VECTOR >, Newton< VECTOR > > inverse_derivative
Definition: newton.h:136