Changeset 5589


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

keep on cleaning KMatrix Stokes

File:
1 edited

Legend:

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

    r5588 r5589  
    29172917
    29182918        /*matrices: */
    2919         double     K_terms[numdof][numdof]={0.0};
    29202919        double     Ke_temp[27][27]={0.0}; //for the six nodes and the bubble
    29212920        double     Ke_reduced[numdof][numdof]; //for the six nodes only
     
    29742973        /*retrive parameters: */
    29752974        parameters->FindParam(&analysis_type,AnalysisTypeEnum);
     2975        this->parameters->FindParam(&stokesreconditioning,StokesReconditioningEnum);
    29762976
    29772977        /*retrieve inputs :*/
     
    29832983        /*If on water or not Stokes, skip stiffness: */
    29842984        if(onwater || approximation!=StokesApproximationEnum) return;
    2985 
    2986         /*retrieve some parameters: */
    2987         this->parameters->FindParam(&stokesreconditioning,StokesReconditioningEnum);
    29882985
    29892986        /* Get node coordinates and dof list: */
     
    31393136        ReduceMatrixStokes(&Ke_reduced[0][0], &Ke_temp[0][0]);
    31403137
    3141         for(i=0;i<numdof;i++){
    3142                 for(j=0;j<numdof;j++){
    3143                         K_terms[i][j]+=Ke_reduced[i][j];
    3144                 }
    3145         }
    3146 
    31473138        /*Add Ke_gg to global matrix Kgg: */
    3148         MatSetValues(Kgg,numdof,doflist,numdof,doflist,(const double*)K_terms,ADD_VALUES);
     3139        MatSetValues(Kgg,numdof,doflist,numdof,doflist,(const double*)Ke_reduced,ADD_VALUES);
    31493140
    31503141        /*Free ressources:*/
Note: See TracChangeset for help on using the changeset viewer.