Changeset 5589
- Timestamp:
- 08/26/10 09:26:01 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r5588 r5589 2917 2917 2918 2918 /*matrices: */ 2919 double K_terms[numdof][numdof]={0.0};2920 2919 double Ke_temp[27][27]={0.0}; //for the six nodes and the bubble 2921 2920 double Ke_reduced[numdof][numdof]; //for the six nodes only … … 2974 2973 /*retrive parameters: */ 2975 2974 parameters->FindParam(&analysis_type,AnalysisTypeEnum); 2975 this->parameters->FindParam(&stokesreconditioning,StokesReconditioningEnum); 2976 2976 2977 2977 /*retrieve inputs :*/ … … 2983 2983 /*If on water or not Stokes, skip stiffness: */ 2984 2984 if(onwater || approximation!=StokesApproximationEnum) return; 2985 2986 /*retrieve some parameters: */2987 this->parameters->FindParam(&stokesreconditioning,StokesReconditioningEnum);2988 2985 2989 2986 /* Get node coordinates and dof list: */ … … 3139 3136 ReduceMatrixStokes(&Ke_reduced[0][0], &Ke_temp[0][0]); 3140 3137 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 3147 3138 /*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); 3149 3140 3150 3141 /*Free ressources:*/
Note:
See TracChangeset
for help on using the changeset viewer.