ElementMatrix.h 2.13 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// ============================================================================
// ==                                                                        ==
// == AMDiS - Adaptive multidimensional simulations                          ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
// ==  crystal growth group                                                  ==
// ==                                                                        ==
// ==  Stiftung caesar                                                       ==
// ==  Ludwig-Erhard-Allee 2                                                 ==
// ==  53175 Bonn                                                            ==
// ==  germany                                                               ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
// ==  http://www.caesar.de/cg/AMDiS                                         ==
// ==                                                                        ==
// ============================================================================

/** \file ElementMatrix.h */

#ifndef AMDIS_ELEMENTMATRIX_H
#define AMDIS_ELEMENTMATRIX_H

#include "MemoryManager.h"
#include "MatrixVector.h"

namespace AMDiS {

  /** \ingroup Assembler
   *  
   * \brief
   * Stores a single element matrix and the corresponding row and column 
   * dof indices.
   */
  class ElementMatrix : public Matrix<double>
  {
  public:
    MEMORY_MANAGED(ElementMatrix);

41
    /// Constructor
42
43
44
45
    ElementMatrix(int numRows, int numCols) 
      : Matrix<double>(numRows, numCols),
	rowIndices(numRows),
	colIndices(numCols)
46
    {}
47
48

  public:
49
    /// Row dof indices.
50
51
    Vector<DegreeOfFreedom> rowIndices;

52
    /// Column dof indices.
53
54
55
56
57
58
    Vector<DegreeOfFreedom> colIndices;
  };

}

#endif // AMDIS_ELEMENTMATRIX_H