OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
matrix_base.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------
2 // $Id: matrix_base.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__matrix_base_h
14 #define __deal2__appframe__matrix_base_h
15 
16 #include <appframe/base.h>
17 #include <lac/full_matrix.h>
18 #include <grid/tria.h>
19 #include <fe/fe_values.h>
20 
21 
22 
23 namespace AppFrame
24 {
40  template <class MATRIX>
41  struct MatrixBlock
42  {
48  unsigned int row;
55  unsigned int column;
59  MATRIX matrix;
64  :
65  row(deal_II_numbers::invalid_unsigned_int),
66  column(deal_II_numbers::invalid_unsigned_int)
67  {}
68 
73  :
74  row(M.row),
75  column(M.column),
76  matrix(M.matrix)
77  {}
78 
83  MatrixBlock(unsigned int i, unsigned int j)
84  :
85  row(i), column(j)
86  {}
87  };
93  typedef std::vector<MatrixBlock<FullMatrix<double> > > MatrixVector;
94 
100  typedef std::vector<Vector<double> > VectorVector;
101 
102 }
103 
104 
105 #endif