Changeset 15198 for issm/trunk-jpl/src/c/classes/Node.cpp
- Timestamp:
- 06/06/13 10:35:32 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Node.cpp
r15104 r15198 68 68 if (!iomodel->Data(MaskVertexonwaterEnum)) _error_("iomodel->nodeonwater is NULL"); 69 69 if (reCast<bool>(iomodel->Data(MaskVertexonwaterEnum)[io_index])){ 70 for(k=1;k<=gsize;k++){ 71 this->FreezeDof(k); 72 } 70 this->Deactivate(); 73 71 } 74 72 … … 86 84 _assert_(iomodel->Data(FlowequationVertexEquationEnum)); 87 85 if (iomodel->Data(FlowequationVertexEquationEnum)[io_index]==MacAyealApproximationEnum && !reCast<int>(iomodel->Data(MeshVertexonbedEnum)[io_index])){ 88 for(k=1;k<=gsize;k++) this->FreezeDof(k);86 this->Deactivate(); 89 87 } 90 88 if (iomodel->Data(FlowequationVertexEquationEnum)[io_index]==L1L2ApproximationEnum && !reCast<int>(iomodel->Data(MeshVertexonbedEnum)[io_index])){ 91 for(k=1;k<=gsize;k++) this->FreezeDof(k);89 this->Deactivate(); 92 90 } 93 91 if (iomodel->Data(FlowequationVertexEquationEnum)[io_index]==MacAyealPattynApproximationEnum && reCast<int>(iomodel->Data(FlowequationBordermacayealEnum)[io_index])){ 94 92 if(!reCast<int>(iomodel->Data(MeshVertexonbedEnum)[io_index])){ 95 for(k=1;k<=gsize;k++) this->FreezeDof(k);93 this->Deactivate(); 96 94 } 97 95 } … … 104 102 /*spc all nodes on hutter*/ 105 103 if (iomodel->Data(FlowequationVertexEquationEnum)[io_index]==HutterApproximationEnum){ 106 for(k=1;k<=gsize;k++){ 107 this->FreezeDof(k); 108 } 104 this->Deactivate(); 109 105 } 110 106 } … … 116 112 /*Constrain all nodes that are not Hutter*/ 117 113 if (reCast<int>(iomodel->Data(FlowequationVertexEquationEnum)[io_index])!=HutterApproximationEnum){ 118 for(k=1;k<=gsize;k++){ 119 this->FreezeDof(k); 120 } 114 this->Deactivate(); 121 115 } 122 116 } … … 134 128 _assert_(iomodel->Data(MeshVertexonbedEnum)); 135 129 if (!(reCast<bool>(iomodel->Data(MeshVertexonbedEnum)[io_index]))){ 136 for(k=1;k<=gsize;k++){ 137 this->FreezeDof(k); 138 } 130 this->Deactivate(); 139 131 } 140 132 } … … 497 489 498 490 DofInSSet(dof-1); //with 0 displacement for this dof. 491 492 } 493 /*}}}*/ 494 /*FUNCTION Node::Deactivate{{{*/ 495 void Node::Deactivate(void){ 496 497 indexing.Deactivate(); 499 498 500 499 }
Note:
See TracChangeset
for help on using the changeset viewer.