Changeset 4479


Ignore:
Timestamp:
07/08/10 15:48:26 (15 years ago)
Author:
seroussi
Message:

InputUpdate for Balancedthickness in Penta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk/src/c/objects/Elements/Penta.cpp ΒΆ

    r4478 r4479  
    25562556/*FUNCTION Penta::InputUpdateFromSolutionBalancedthickness {{{1*/
    25572557void  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));
    25592580}
    25602581/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.