Changeset 18339


Ignore:
Timestamp:
08/07/14 09:56:03 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added lumping of element matrix

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  
    339339        }
    340340        #endif
     341}
     342/*}}}*/
     343void 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;
    341357}
    342358/*}}}*/
  • issm/trunk-jpl/src/c/classes/matrix/ElementMatrix.h

    r16228 r18339  
    6363                void CheckConsistency(void);
    6464                void StaticCondensation(int numindices,int* indices);
     65                void Lump(void);
    6566                void Transpose(void);
    6667                void Init(ElementMatrix* Ke);
Note: See TracChangeset for help on using the changeset viewer.