Hermes2D  3.0
asmlist.h
1 // This file is part of Hermes2D.
2 //
3 // Hermes2D is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation, either version 2 of the License, or
6 // (at your option) any later version.
7 //
8 // Hermes2D is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with Hermes2D. If not, see <http://www.gnu.org/licenses/>.
15 
16 #ifndef __H2D_ASMLIST_H
17 #define __H2D_ASMLIST_H
18 
19 #include "global.h"
20 #include "shapeset/shapeset.h"
21 
22 namespace Hermes
23 {
24  namespace Hermes2D
25  {
32  template<typename Scalar>
33  class HERMES_API AsmList
34  {
35  public:
37  AsmList();
38 
40  AsmList(const AsmList<Scalar> & other);
41 
42  int* get_idx();
43  int* get_dof();
44  Scalar* get_coef();
45  unsigned int get_cnt();
46 
48  int idx[H2D_MAX_LOCAL_BASIS_SIZE];
50  int dof[H2D_MAX_LOCAL_BASIS_SIZE];
52  Scalar coef[H2D_MAX_LOCAL_BASIS_SIZE];
54  unsigned short cnt;
55 
57  void add_triplet(int i, int d, Scalar c);
58  };
59  }
60 }
61 #endif
Definition: adapt.h:24
Common definitions for Hermes2D.
unsigned short cnt
the number of items in the arrays idx, dof and coef
Definition: asmlist.h:54