Changeset 5588


Ignore:
Timestamp:
08/26/10 09:19:06 (15 years ago)
Author:
seroussi
Message:

removed some useless parameters in CreateKMatrixStokes

File:
1 edited

Legend:

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

    r5585 r5588  
    28992899
    29002900        int i,j;
    2901 
    29022901        const int numgrids=6;
    29032902        const int DOFPERGRID=4;
     
    29082907        const int numdof2d=numgrids2d*DOFPERGRID;
    29092908
    2910         double K_terms[numdof][numdof]={0.0};
    2911 
    2912         /*Material properties: */
    2913         double    gravity,rho_ice,rho_water;
    2914 
    29152909        /*Collapsed formulation: */
    29162910        Tria*  tria=NULL;
    29172911
    29182912        /*Grid data: */
    2919         double        xyz_list[numgrids][3];
    2920 
    2921         /*parameters: */
    2922         double             xyz_list_tria[numgrids2d][3];
    2923         double             surface_normal[3];
    2924         double             bed_normal[3];
    2925         double         thickness;
     2913        double     xyz_list[numgrids][3];
     2914        double    xyz_list_tria[numgrids2d][3];
     2915        double    surface_normal[3];
     2916        double    bed_normal[3];
    29262917
    29272918        /*matrices: */
     2919        double     K_terms[numdof][numdof]={0.0};
    29282920        double     Ke_temp[27][27]={0.0}; //for the six nodes and the bubble
    29292921        double     Ke_reduced[numdof][numdof]; //for the six nodes only
     
    29572949        double  gauss_coord[4];
    29582950        double  gauss_coord_tria[3];
    2959         int area_order=5;
    2960         int     num_vert_gauss=5;
     2951        int     area_order=5;
     2952        int       num_vert_gauss=5;
    29612953
    29622954        double  epsilon[6]; /* epsilon=[exx,eyy,ezz,exy,exz,eyz];*/
     
    29912983        /*If on water or not Stokes, skip stiffness: */
    29922984        if(onwater || approximation!=StokesApproximationEnum) return;
    2993 
    2994         /*recovre material parameters: */
    2995         rho_water=matpar->GetRhoWater();
    2996         rho_ice=matpar->GetRhoIce();
    2997         gravity=matpar->GetG();
    29982985
    29992986        /*retrieve some parameters: */
     
    31603147        /*Add Ke_gg to global matrix Kgg: */
    31613148        MatSetValues(Kgg,numdof,doflist,numdof,doflist,(const double*)K_terms,ADD_VALUES);
    3162 
    31633149
    31643150        /*Free ressources:*/
Note: See TracChangeset for help on using the changeset viewer.