Changeset 13914
- Timestamp:
- 11/08/12 14:55:06 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/shared/Elements/PrintArrays.cpp
r13901 r13914 14 14 } 15 15 void printsparsity(IssmPDouble* array,int lines,int cols){ 16 int count; 16 17 _printLine_(""); 17 18 for(int i=0;i<lines;i++){ 18 19 _printString_(" [ "); 20 count = 0; 19 21 for(int j=0;j<cols;j++){ 20 if(array[i*cols+j]!=0.0) 21 _printString_( " X"); 22 if(array[i*cols+j]!=0.0){ 23 _printString_( " X"); count++; 24 } 22 25 else 23 26 _printString_( " ."); 24 27 } 25 _printLine_(" ] ");28 _printLine_(" ] "<<i<<" => "<<count); 26 29 } 27 30 _printLine_("");
Note:
See TracChangeset
for help on using the changeset viewer.