Changeset 4248 for issm/trunk/src/c/objects/DofIndexing.cpp
- Timestamp:
- 06/26/10 12:30:21 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk/src/c/objects/DofIndexing.cpp ¶
r4236 r4248 17 17 #include "../include/include.h" 18 18 19 /* Objectconstructors and destructor*/19 /*DofIndexing constructors and destructor*/ 20 20 /*FUNCTION DofIndexing::DofIndexing(){{{1*/ 21 21 DofIndexing::DofIndexing(){ … … 60 60 } 61 61 /*}}}*/ 62 /*FUNCTION DofIndexing::Init{{{1*/ 63 void DofIndexing::Init(int in_numberofdofs){ 62 64 63 /*Object management: */ 65 int i; 66 this->numberofdofs=in_numberofdofs; 67 this->clone=0; 68 69 for (i=0;i<MAXDOFSPERNODE;i++){ 70 /*assume dof is free, no constraints, no rigid body constraint: */ 71 this->m_set[i]=0; 72 this->n_set[i]=1; 73 this->f_set[i]=1; 74 this->s_set[i]=0; 75 this->doflist[i]=UNDEF; 76 } 77 } 78 /*}}}*/ 79 80 /*Some of the Object functionality: */ 81 /*FUNCTION DofIndexing::Echo{{{1*/ 82 void DofIndexing::Echo(void){ 83 84 int i; 85 86 printf("DofIndexing:\n"); 87 printf(" numberofdofs: %i\n",numberofdofs); 88 printf(" clone: %i\n",clone); 89 } 90 /*}}}*/ 64 91 /*FUNCTION DofIndexing::DeepEcho{{{1*/ 65 92 void DofIndexing::DeepEcho(void){ … … 112 139 } 113 140 /*}}}*/ 114 /*FUNCTION DofIndexing::Echo{{{1*/115 void DofIndexing::Echo(void){116 117 int i;118 119 printf("DofIndexing:\n");120 printf(" numberofdofs: %i\n",numberofdofs);121 printf(" clone: %i\n",clone);122 }123 /*}}}*/124 /*FUNCTION DofIndexing::Init{{{1*/125 void DofIndexing::Init(int in_numberofdofs){126 127 int i;128 this->numberofdofs=in_numberofdofs;129 this->clone=0;130 131 for (i=0;i<MAXDOFSPERNODE;i++){132 /*assume dof is free, no constraints, no rigid body constraint: */133 this->m_set[i]=0;134 this->n_set[i]=1;135 this->f_set[i]=1;136 this->s_set[i]=0;137 this->doflist[i]=UNDEF;138 }139 }140 /*}}}*/141 141 /*FUNCTION DofIndexing::Marshall{{{1*/ 142 142 void DofIndexing::Marshall(char** pmarshalled_dataset){
Note:
See TracChangeset
for help on using the changeset viewer.