Changeset 597 for inundation/ga/storm_surge/pyvolution/sparse_ext.c
- Timestamp:
- Nov 19, 2004, 11:11:48 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/sparse_ext.c
r596 r597 24 24 long i, j, ckey; 25 25 26 printf("test");26 //printf("test"); 27 27 for (i=0; i<M; i++ ) 28 28 for (ckey=row_ptr[i]; ckey<row_ptr[i+1]; ckey++) { … … 31 31 } 32 32 33 printf("end");33 //printf("end"); 34 34 return 0; 35 35 } … … 95 95 96 96 97 printf(" x.dim[0] = %i x.dim[1] = %i \n", x -> dimensions[0], x -> dimensions[1]);97 //printf(" x.dim[0] = %i x.dim[1] = %i \n", x -> dimensions[0], x -> dimensions[1]); 98 98 99 99 //Allocate space for return vectors y (don't DECREF) … … 101 101 y = (PyArrayObject *) PyArray_FromDims(1, dimensions, PyArray_DOUBLE); 102 102 103 for (i=0;i<25;i++){ 104 printf(" data[%i]=%i\n",i,(data->data)[i]); 105 } 103 /* for (i=0;i<25;i++){ */ 104 /* printf(" data[%i]=%i\n",i,(data->data)[i]); */ 105 /* } */ 106 106 107 for (i=0;i<25;i++){ 108 printf(" colind[%i]=%i\n",i,(colind->data)[i]); 109 } 107 /* for (i=0;i<25;i++){ */ 108 /* printf(" colind[%i]=%i\n",i,(colind->data)[i]); */ 109 /* } */ 110 110 111 err = _csr_mv(M, 111 112 (double*) data -> data, … … 115 116 (double*) y -> data); 116 117 117 for (i=0;i<25;i++){ 118 printf(" data[%i]=%i\n",i,data->data[i]); 119 } 118 /* for (i=0;i<25;i++){ */ 119 /* printf(" data[%i]=%i\n",i,data->data[i]); */ 120 /* } */ 120 121 121 122 if (err != 0) {
Note: See TracChangeset
for help on using the changeset viewer.