Changeset 27707


Ignore:
Timestamp:
04/26/23 13:35:13 (2 years ago)
Author:
Cheng Gong
Message:

BUG: fix seg fault when reading in sparse matrix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/wrappers/matlab/io/FetchMatlabData.cpp

    r24112 r27707  
    538538      for(int i=0;i<cols;i++){
    539539         for(int j=0;j<(jc[i+1]-jc[i]);j++){
    540             matrix[rows*ir[count]+i]=pmxmatrix[count];
     540            matrix[cols*ir[count]+i]=pmxmatrix[count];
    541541            count++;
    542542         }
Note: See TracChangeset for help on using the changeset viewer.