Changeset 18339
- Timestamp:
- 08/07/14 09:56:03 (11 years ago)
- Location:
- issm/trunk-jpl/src/c/classes/matrix
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/matrix/ElementMatrix.cpp
r18064 r18339 339 339 } 340 340 #endif 341 } 342 /*}}}*/ 343 void ElementMatrix::Lump(void){/*{{{*/ 344 345 if(!dofsymmetrical) _error_("not supported yet"); 346 347 for(int i=0;i<this->nrows;i++){ 348 for(int j=0;j<this->ncols;j++){ 349 if(i!=j){ 350 this->values[i*this->ncols+i] += this->values[i*this->ncols+j]; 351 this->values[i*this->ncols+j] = 0.; 352 } 353 } 354 } 355 356 return; 341 357 } 342 358 /*}}}*/ -
issm/trunk-jpl/src/c/classes/matrix/ElementMatrix.h
r16228 r18339 63 63 void CheckConsistency(void); 64 64 void StaticCondensation(int numindices,int* indices); 65 void Lump(void); 65 66 void Transpose(void); 66 67 void Init(ElementMatrix* Ke);
Note:
See TracChangeset
for help on using the changeset viewer.