Ignore:
Timestamp:
03/23/21 11:52:52 (4 years ago)
Author:
Mathieu Morlighem
Message:

CHG: big simplification here: we now carry the vectors of fset and sset using the same size as gset, with -1 when they are not in the right set. Example: old_fset = [1 2 3], new_fset=[1 -1 2 3 -1 -1]; enjoy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/AdjointBalancethicknessAnalysis.cpp

    r26090 r26131  
    227227        /*Transpose and return Ke*/
    228228        Ke->Transpose();
    229         _assert_(Ke->nrows == numvertices && Ke->ncols == numvertices);
     229        _assert_(Ke->nrows == numvertices);
    230230
    231231        for(int i=0;i<numvertices;i++){
    232232                for(int j=0;j<numvertices;j++){
    233                         ge[i] += Ke->values[i*Ke->ncols + j] * lambda[j];
     233                        ge[i] += Ke->values[i*Ke->nrows + j] * lambda[j];
    234234                }
    235235                //ge[i]=-lambda[i];
Note: See TracChangeset for help on using the changeset viewer.