Changeset 17341


Ignore:
Timestamp:
02/21/14 19:38:41 (11 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixing SSA friction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp

    r17337 r17341  
    11801180        /*Fetch number of nodes and dof for this finite element*/
    11811181        int numnodes = element->GetNumberOfNodes();
    1182         int numdof   = numnodes*2;
     1182        int numdof   = numnodes*dim;
    11831183
    11841184        /*Initialize Element matrix and vectors*/
     
    11971197
    11981198        /*build friction object, used later on: */
    1199         Friction* friction=new Friction(element,2);
     1199        Friction* friction=new Friction(element,1);
    12001200
    12011201        /*Recover portion of element that is grounded*/
     
    12321232
    12331233        /*Transform Coordinate System*/
    1234         element->TransformStiffnessMatrixCoord(Ke,XYEnum);
     1234        if(dim==2) element->TransformStiffnessMatrixCoord(Ke,XYEnum);
    12351235
    12361236        /*Clean up and return*/
Note: See TracChangeset for help on using the changeset viewer.