1 | /*!\file: DofIndexing.h
|
---|
2 | * \brief prototype for DofIndexing.h
|
---|
3 | */
|
---|
4 |
|
---|
5 | #ifndef _DOFINDEXING_H_
|
---|
6 | #define _DOFINDEXING_H_
|
---|
7 |
|
---|
8 | class DofIndexing{
|
---|
9 |
|
---|
10 | public:
|
---|
11 |
|
---|
12 | /*sizes: */
|
---|
13 | int gsize; //number of dofs for a node
|
---|
14 | int fsize; //number of dofs solver for
|
---|
15 | int ssize; //number of constrained dofs
|
---|
16 |
|
---|
17 | /*partitioning: */
|
---|
18 | int clone; //this node is replicated from another one
|
---|
19 |
|
---|
20 | /*boundary conditions sets: */
|
---|
21 | bool* f_set; //is dof on f-set (on which we solve)
|
---|
22 | bool* s_set; //is dof on s-set (on which boundary conditions -dirichlet- are applied)
|
---|
23 | double* svalues; //list of constraint values. size g_size, for ease of use.
|
---|
24 |
|
---|
25 | /*types of dofs: */
|
---|
26 | int* doftype; //approximation type of the dofs (used only for coupling), size g_size
|
---|
27 |
|
---|
28 | /*list of degrees of freedom: */
|
---|
29 | int* gdoflist; //dof list in g_set
|
---|
30 | int* fdoflist; //dof list in f_set
|
---|
31 | int* sdoflist; //dof list in s_set
|
---|
32 |
|
---|
33 |
|
---|
34 | /*DofIndexing constructors, destructors {{{1*/
|
---|
35 | DofIndexing();
|
---|
36 | DofIndexing(int g_size);
|
---|
37 | void Init(int g_size,int* doftype);
|
---|
38 | void InitSet(int setenum);
|
---|
39 | DofIndexing(DofIndexing* properties);
|
---|
40 | ~DofIndexing();
|
---|
41 | /*}}}*/
|
---|
42 | /*Object like functionality: {{{1*/
|
---|
43 | void Echo(void);
|
---|
44 | void DeepEcho(void);
|
---|
45 | #ifdef _SERIAL_
|
---|
46 | void Marshall(char** pmarshalled_dataset);
|
---|
47 | int MarshallSize();
|
---|
48 | void Demarshall(char** pmarshalled_dataset);
|
---|
49 | #endif
|
---|
50 | void copy(DofIndexing* properties);
|
---|
51 | /*}}}*/
|
---|
52 | /*DofIndexing management: {{{1*/
|
---|
53 | DofIndexing* Spawn(int* indices, int numindices);
|
---|
54 | /*}}}*/
|
---|
55 |
|
---|
56 | };
|
---|
57 | #endif //ifndef _DOFINDEXING_H_
|
---|