eigen_time_solver.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
18 
19 
20 #ifndef LIBMESH_EIGEN_TIME_SOLVER_H
21 #define LIBMESH_EIGEN_TIME_SOLVER_H
22 
23 #include "libmesh/libmesh_config.h"
24 #ifdef LIBMESH_HAVE_SLEPC
25 
26 // Local includes
27 #include "libmesh/time_solver.h"
28 
29 // C++ includes
30 
31 namespace libMesh
32 {
33 
34 // Forward declarations
35 template <typename T> class EigenSolver;
36 
37 
68 {
69 public:
74 
78  typedef TimeSolver Parent;
79 
84  explicit
86 
90  virtual ~EigenTimeSolver ();
91 
96  virtual void init ();
97 
102  virtual void reinit ();
103 
108  virtual void solve ();
109 
113  virtual void advance_timestep () { }
114 
119  virtual Real error_order() const { return 0.; }
120 
125  virtual bool element_residual (bool get_jacobian,
126  DiffContext&);
127 
131  virtual bool side_residual (bool get_jacobian,
132  DiffContext&);
133 
139  virtual Real du (const SystemNorm&) const { return 0.; }
140 
144  virtual bool is_steady() const { return true; }
145 
151 
157 
161  unsigned int maxits;
162 
167 
178 
184 
189  unsigned int n_iterations_reqd;
190 
191 private:
192 
198 
203 
208  };
209 
214 
215 };
216 
217 } // namespace libMesh
218 
219 
220 #endif // LIBMESH_HAVE_SLEPC
221 #endif // LIBMESH_EIGEN_TIME_SOLVER_H

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:04 UTC

Hosted By:
SourceForge.net Logo