OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
runge_kutta.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------
2 // $Id: runge_kutta.h 1348 2013-08-16 00:45:07Z secanell $
3 //
4 // Copyright (C) 2006, 2007 by Guido Kanschat
5 //
6 // This file is subject to QPL and may not be distributed
7 // without copyright and license information. Please refer
8 // to the file deal.II/doc/license.html for the text and
9 // further information on this license.
10 //
11 //---------------------------------------------------------------------------
12 
13 #ifndef __deal2__appframe__runge_kutta_h
14 #define __deal2__appframe__runge_kutta_h
15 
16 #include <appframe/base.h>
18 
19 namespace dealii
20 {
21  class ParameterHandler;
22  template<typename T> class BlockVector;
23 }
24 
25 namespace AppFrame
26 {
33  public ApplicationCopy
34  {
35  public:
42 
46  virtual void solve(FEVector& start, const FEVectors& rhs);
47  virtual void declare_parameters (ParameterHandler& param);
48  virtual void initialize (ParameterHandler& param);
49 
53  void _initialize (ParameterHandler& param);
54 
59  void set_scheme(const std::string name);
60 
67  DeclException1(ExcUnknownScheme, std::string,
68  << "A scheme with name " << arg1 << " is not known");
69 
70  protected:
72 
73  private:
80  void resize_vectors(unsigned int n);
84  std::vector<std::vector<double> > a;
91  std::vector<double> b;
97  std::vector<double> c;
98 
99  };
100 
101 }
102 
103 #endif