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