Changeset 14782
- Timestamp:
- 04/29/13 11:26:07 (12 years ago)
- Location:
- issm/trunk-jpl/src/c/classes/objects/Elements
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/objects/Elements/Tria.cpp
r14769 r14782 1765 1765 #ifdef _HAVE_GIA_ 1766 1766 case GiaAnalysisEnum: 1767 InputUpdateFromSolution OneDof(solution,GiaWEnum);1767 InputUpdateFromSolutionGia(solution); 1768 1768 break; 1769 1769 #endif … … 3179 3179 3180 3180 return; 3181 } 3182 /*}}}*/ 3183 /*FUNCTION Tria::InputUpdateFromSolutionGia{{{*/ 3184 void Tria::InputUpdateFromSolutionGia(IssmDouble* solution){ 3185 3186 int vertexsidlist[NUMVERTICES]; 3187 IssmDouble values[NUMVERTICES]; 3188 3189 /*Get sid list: */ 3190 this->GetVertexSidList(&vertexsidlist[0]); 3191 3192 /*Use the dof list to index into the solution vector: */ 3193 for(int i=0;i<NUMVERTICES;i++){ 3194 values[i]=solution[vertexsidlist[i]]; 3195 if(xIsNan<IssmDouble>(values[i])) _error_("NaN found in solution vector"); 3196 } 3197 3198 /*Add input to the element: */ 3199 this->inputs->AddInput(new TriaP1Input(enum_type,values)); 3200 3201 /*Free ressources:*/ 3202 xDelete<int>(doflist); 3181 3203 } 3182 3204 /*}}}*/ -
issm/trunk-jpl/src/c/classes/objects/Elements/Tria.h
r14769 r14782 143 143 #ifdef _HAVE_GIA_ 144 144 void GiaDeflection(Vector<IssmDouble>* wg,IssmDouble* x,IssmDouble* y); 145 void InputUpdateFromSolutionGia(IssmDouble* solution); 145 146 #endif 146 147
Note:
See TracChangeset
for help on using the changeset viewer.