Changeset 11563


Ignore:
Timestamp:
02/28/12 10:54:09 (13 years ago)
Author:
Mathieu Morlighem
Message:

Fixing analtical gradient

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/objects/Elements/Tria.cpp

    r11558 r11563  
    35973597        int        analysis_type;
    35983598        int        doflist1[NUMVERTICES];
     3599        int        connectivity[NUMVERTICES];
    35993600        double     vx,vy,lambda,mu,alpha_complement,Jdet;
    36003601        double     bed,thickness,Neff,drag;
     
    36143615        GetVerticesCoordinates(&xyz_list[0][0], nodes, NUMVERTICES);
    36153616        GradientIndexing(&doflist1[0],control_index);
     3617        this->GetConnectivityList(&connectivity[0]);
    36163618
    36173619        /*Build frictoin element, needed later: */
     
    36663668        //      vx_input->GetInputValue(&vx,gauss);
    36673669        //      vy_input->GetInputValue(&vy,gauss);
    3668         //      grade_g[iv]=-2*drag*alpha_complement*((lambda*vx+mu*vy));
     3670        //      grade_g[iv] = -2*drag*alpha_complement*(lambda*vx+mu*vy)/((double)connectivity[iv]);
    36693671        //}
    3670         //VecSetValues(gradient,NUMVERTICES,doflist1,(const double*)grade_g,INSERT_VALUES);
    36713672        /*End Analytical gradient*/
    36723673
Note: See TracChangeset for help on using the changeset viewer.