Changeset 25468
- Timestamp:
- 08/25/20 13:57:17 (5 years ago)
- Location:
- issm/trunk-jpl/src/c/classes/Constraints
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Constraints/SpcStatic.cpp
r24712 r25468 152 152 /*}}}*/ 153 153 154 void SpcStatic::UpdateSpcThicknessAD(IssmDouble* vector,Nodes* nodes){/*{{{*/ 155 156 /*Chase through nodes and find the node to which this SpcStatic applies: */ 157 Node* node=(Node*)nodes->GetObjectById(NULL,nodeid); 158 159 /*Apply constraint: */ 160 if(node){ //in case the spc is dealing with a node on another cpu 161 int sid = node->Sid(); 162 this->value = vector[sid]; 163 _assert_(!xIsNan<IssmDouble>(this->value)); 164 } 165 } 166 /*}}}*/ 167 154 168 /*SpcStatic functions*/ 155 169 int SpcStatic::GetDof(){/*{{{*/ -
issm/trunk-jpl/src/c/classes/Constraints/SpcStatic.h
r24712 r25468 14 14 15 15 private: 16 int id; /*! id, to track it */17 int nodeid; /*!node id */18 int dof; /*!component */19 IssmDouble value; /*value */16 int id; 17 int nodeid; 18 int dof; 19 IssmDouble value; 20 20 int analysis_type; 21 bool penalty; /*Is this a penalty constraint */21 bool penalty; 22 22 23 23 public: … … 47 47 IssmDouble GetValue(); 48 48 /*}}}*/ 49 void UpdateSpcThicknessAD(IssmDouble* vector,Nodes* nodes); 49 50 50 51 };
Note:
See TracChangeset
for help on using the changeset viewer.