Go to the source code of this file.
◆ GetGlobalDofList()
int* GetGlobalDofList |
( |
Node ** |
nodes, |
|
|
int |
numnodes, |
|
|
int |
setenum, |
|
|
int |
approximation |
|
) |
| |
Definition at line 1035 of file Node.cpp.
1038 int* ndof_list=NULL;
1039 int *doflist = NULL;
1044 ndof_list=xNew<int>(numnodes);
1048 for(i=0;i<numnodes;i++){
1050 numdof+=ndof_list[i];
1055 doflist=xNew<int>(numdof);
1059 for(i=0;i<numnodes;i++){
1060 nodes[i]->
GetDofList(&doflist[count],approximation,setenum);
1061 count+=ndof_list[i];
1067 xDelete<int>(ndof_list);
◆ GetLocalDofList()
int* GetLocalDofList |
( |
Node ** |
nodes, |
|
|
int |
numnodes, |
|
|
int |
setenum, |
|
|
int |
approximation |
|
) |
| |
Definition at line 1072 of file Node.cpp.
1074 int i,j,count,numdof,numgdof;
1075 int* ndof_list=NULL;
1076 int* ngdof_list_cumulative=NULL;
1077 int *doflist = NULL;
1081 ndof_list=xNew<int>(numnodes);
1082 ngdof_list_cumulative=xNew<int>(numnodes);
1087 for(i=0;i<numnodes;i++){
1090 ngdof_list_cumulative[i]=numgdof;
1095 numdof +=ndof_list[i];
1100 doflist=xNew<int>(numdof);
1104 for(i=0;i<numnodes;i++){
1106 count+=ndof_list[i];
1111 for(i=0;i<numnodes;i++){
1112 for(j=0;j<ndof_list[i];j++){
1113 doflist[count+j]+=ngdof_list_cumulative[i];
1115 count+=ndof_list[i];
1122 xDelete<int>(ndof_list);
1123 xDelete<int>(ngdof_list_cumulative);
◆ GetNumberOfDofs()
int GetNumberOfDofs |
( |
Node ** |
nodes, |
|
|
int |
numnodes, |
|
|
int |
setenum, |
|
|
int |
approximation |
|
) |
| |
Definition at line 1129 of file Node.cpp.
1134 for(
int i=0;i<numnodes;i++){
1138 return numberofdofs;