Changeset 13364


Ignore:
Timestamp:
09/13/12 13:58:18 (13 years ago)
Author:
utke
Message:

CHG wrong index

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/Solverx/SolverxSeq.cpp

    r13361 r13364  
    9494    r[i]=inDeriv[m*m+i]; // this is db[i]
    9595    for (int j=0;j<m; j++) {
    96       r[i]-=inDeriv[i*n+j]*outVal[j]; // this is dA[i][j]*x[j]
     96      r[i]-=inDeriv[i*m+j]*outVal[j]; // this is dA[i][j]*x[j]
    9797    }
    9898  }
     
    134134      r[i]=inDeriv[m*m+i][dir]; // this is db[i]
    135135      for (int j=0;j<m; j++) {
    136         r[i]-=inDeriv[i*n+j][dir]*outVal[j]; // this is dA[i][j]*x[j]
     136        r[i]-=inDeriv[i*m+j][dir]*outVal[j]; // this is dA[i][j]*x[j]
    137137      }
    138138    }
Note: See TracChangeset for help on using the changeset viewer.