Changeset 4479
- Timestamp:
- 07/08/10 15:48:26 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk/src/c/objects/Elements/Penta.cpp ΒΆ
r4478 r4479 2556 2556 /*FUNCTION Penta::InputUpdateFromSolutionBalancedthickness {{{1*/ 2557 2557 void Penta::InputUpdateFromSolutionBalancedthickness(double* solution){ 2558 ISSMERROR(" not supported yet!"); 2558 2559 int i; 2560 2561 const int numvertices=6; 2562 const int numdofpervertex=1; 2563 const int numdof=numdofpervertex*numvertices; 2564 2565 int doflist[numdof]; 2566 double values[numdof]; 2567 2568 int dummy; 2569 2570 /*Get dof list: */ 2571 GetDofList(&doflist[0],&dummy); 2572 2573 /*Use the dof list to index into the solution vector: */ 2574 for(i=0;i<numdof;i++){ 2575 values[i]=solution[doflist[i]]; 2576 } 2577 2578 /*Add thickness as inputs to the tria element: */ 2579 this->inputs->AddInput(new PentaVertexInput(ThicknessEnum,values)); 2559 2580 } 2560 2581 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.