Changeset 9002 for issm/trunk/src/c/objects/Constraints/Spc.cpp
- Timestamp:
- 07/15/11 08:49:34 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Constraints/Spc.cpp
r8224 r9002 147 147 /*}}}1*/ 148 148 149 /*Constraint virtual functions definitions: */ 150 /*FUNCTION Spc::InAnalysis{{{1*/ 151 bool Spc::InAnalysis(int in_analysis_type){ 152 if (in_analysis_type==this->analysis_type) return true; 153 else return false; 154 } 155 /*}}}*/ 156 /*FUNCTION Spc::ConstrainNode{{{1*/ 157 void Spc::ConstrainNode(Nodes* nodes,Parameters* parameters){ 158 159 Node* node=NULL; 160 161 /*Chase through nodes and find the node to which this Spc applys: */ 162 node=(Node*)nodes->GetObjectById(NULL,nodeid); 163 164 /*Apply constraint: */ 165 if(node){ //in case the spc is dealing with a node on another cpu 166 node->ApplyConstraint(dof,value); 167 } 168 } 169 /*}}}*/ 170 149 171 /*Spc functions*/ 150 172 /*FUNCTION Spc::GetDof {{{1*/ … … 164 186 } 165 187 /*}}}1*/ 166 /*FUNCTION Spc::InAnalysis{{{1*/167 bool Spc::InAnalysis(int in_analysis_type){168 if (in_analysis_type==this->analysis_type) return true;169 else return false;170 }171 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.