diff --git a/src/maths/sparse/spoutput.c b/src/maths/sparse/spoutput.c index ee5b980c7..9a3b7c9dc 100644 --- a/src/maths/sparse/spoutput.c +++ b/src/maths/sparse/spoutput.c @@ -63,26 +63,10 @@ int Printer_Width = PRINTER_WIDTH; void spMatrix_CSC(MatrixPtr Matrix, int *Ap, int *Ai, double *Ax, int n, double **bind_Sparse, double **bind_KLU, double **diag) { int offset, i ; -// int j, *temp_vector_Ap, *temp_vector_Ai, *Q, *Q_new, col; -// int pstart, pend, dim, k, max_index, max_Ai, temp_Ai; -// int *bind_KLU_P, *bind_KLU_Pinv, kbar ; -// spREAL temp_elem, *temp_vector_A ; -// Q=(int*)SP_MALLOC(int, n); -// temp_vector_Ap=(int*)SP_MALLOC(int, n+1); -// temp_vector_Ai=(int*)SP_MALLOC(int, nz); -// temp_vector_A=(spREAL*)SP_MALLOC(spREAL, nz); -// bind_KLU_P = (int *) SP_MALLOC (int, nz) ; -// bind_KLU_Pinv = (int *) SP_MALLOC (int, nz) ; offset=0; -// temp_vector_Ap[0]=offset; Ap[0]=offset; for (i=1;i<=n;i++) { -// offset+=WriteCol_original(Matrix, i, (spREAL*)((long)temp_vector_A+offset*sizeof(spREAL)), -// (int*)((long)temp_vector_Ai+offset*sizeof(int)), &col, -// (spREAL **)((long)bind_Sparse + offset * sizeof(spREAL *)), -// (spREAL **)((long)bind_KLU + offset * sizeof(spREAL *))); -// temp_vector_Ap[i]=offset; offset+=WriteCol_original(Matrix, i, (spREAL*)((long)Ax+offset*sizeof(spREAL)), (int*)((long)Ai+offset*sizeof(int)), (spREAL **)((long)bind_Sparse + offset * sizeof(spREAL *)), @@ -90,73 +74,8 @@ void spMatrix_CSC(MatrixPtr Matrix, int *Ap, int *Ai, double *Ax, int n, double (spREAL **)((long)diag + (i - 1) * sizeof(spREAL *))); Ap[i]=offset; -// Q[i-1]=col; } -/* for (i = 0 ; i < nz ; i++) { - bind_KLU_P [i] = i ; - bind_KLU_Pinv [i] = i ; - } - - for (i=0;i